-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from ut-ras/update-taproot
Update taproot to latest develop
- Loading branch information
Showing
60 changed files
with
1,660 additions
and
350 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
#include "sound_subsystem.hpp" | ||
namespace subsystems | ||
{ | ||
namespace sound | ||
|
||
#include "tap/communication/sensors/buzzer/buzzer.hpp" | ||
|
||
namespace subsystems::sound | ||
{ | ||
using tap::gpio::Pwm; | ||
|
||
SoundSubsystem::SoundSubsystem(src::Drivers* drivers) | ||
: tap::control::Subsystem(drivers), | ||
drivers(drivers) | ||
{ | ||
} | ||
|
||
void SoundSubsystem::initialize() {} | ||
|
||
void SoundSubsystem::refresh() {} | ||
|
||
void SoundSubsystem::silence() { tap::buzzer::silenceBuzzer(&drivers->pwm); } | ||
|
||
void SoundSubsystem::setBuzzerFrequency(int frequency) | ||
{ | ||
tap::buzzer::playNote(&drivers->pwm, frequency); | ||
// define keys with numerical frequencies | ||
} | ||
}; // namespace sound | ||
} // namespace subsystems | ||
} // namespace subsystems::sound |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,22 @@ | ||
#pragma once | ||
|
||
// #include "tap/communication/gpio/pwm.hpp" | ||
#include "tap/communication/sensors/buzzer/buzzer.hpp" | ||
#include "tap/control/subsystem.hpp" | ||
|
||
#include "drivers.hpp" | ||
|
||
namespace subsystems | ||
namespace subsystems::sound | ||
{ | ||
namespace sound | ||
{ | ||
using tap::gpio::Pwm; | ||
|
||
class SoundSubsystem : public tap::control::Subsystem | ||
{ | ||
public: | ||
SoundSubsystem(src::Drivers* drivers); | ||
void initialize() override; | ||
void refresh() override; | ||
const char* getName() override { return "Sound subsystem"; } | ||
|
||
void setBuzzerFrequency(int frequency); | ||
void silence(); | ||
|
||
private: | ||
src::Drivers* drivers; | ||
}; | ||
} // namespace sound | ||
} // namespace subsystems |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.