|
Fang-Robotics-MCB
Fang Robotics Team Codebase
|
#include <terminal_serial.hpp>

Public Member Functions | |
| virtual bool | terminalSerialCallback (char *inputLine, modm::IOStream &outputStream, bool streamingEnabled)=0 |
| virtual void | terminalSerialStreamCallback (modm::IOStream &outputStream)=0 |
If you would like to interact with the terminal, extend this class and implement the callback.
|
pure virtual |
| [in] | inputLine | The user input to be processed. |
| [out] | outputStream | The stream to write information to. |
| [in] | streamingEnabled | Set to true when the streaming is initially enabled. Subsequent interactions with the callback handler will be via terminalSerialStreamCallback until streaming has been disabled. |
true if the inputLine was valid and was parsed correctly, false otherwise. Implemented in tap::communication::sensors::imu::ImuTerminalSerialHandler, tap::control::SchedulerTerminalHandler, tap::motor::DjiMotorTerminalSerialHandler, and tap::errors::ErrorController.
|
pure virtual |
Called repeatedly by the TerminalSerial when in streaming mode.
Implemented in tap::errors::ErrorController, tap::communication::sensors::imu::ImuTerminalSerialHandler, tap::control::SchedulerTerminalHandler, and tap::motor::DjiMotorTerminalSerialHandler.