74 std::unique_ptr<frc::DigitalInput> m_buttonB;
75 std::unique_ptr<frc::DigitalOutput> m_greenLed;
78 std::unique_ptr<frc::DigitalInput> m_buttonC;
79 std::unique_ptr<frc::DigitalOutput> m_redLed;
Class to write to digital outputs.
Definition DigitalOutput.h:26
This class represents the onboard IO of the Romi reference robot.
Definition OnBoardIO.h:30
bool GetButtonBPressed()
Gets if the B button is pressed.
ChannelMode
Mode for Romi onboard IO.
Definition OnBoardIO.h:33
@ OUTPUT
Output.
Definition OnBoardIO.h:33
@ INPUT
Input.
Definition OnBoardIO.h:33
void SetRedLed(bool value)
Sets the red LED.
bool GetButtonAPressed()
Gets if the A button is pressed.
void SetGreenLed(bool value)
Sets the green LED.
units::second_t m_nextMessageTime
Definition OnBoardIO.h:37
static constexpr auto kMessageInterval
Definition OnBoardIO.h:36
void SetYellowLed(bool value)
Sets the yellow LED.
bool GetButtonCPressed()
Gets if the C button is pressed.
OnBoardIO(OnBoardIO::ChannelMode dio1, OnBoardIO::ChannelMode dio2)