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


Public Member Functions | |
| ImuTerminalSerialHandler (Drivers *drivers, AbstractIMU *imu) | |
| mockable void | init () |
| bool | terminalSerialCallback (char *inputLine, modm::IOStream &outputStream, bool streamingEnabled) override |
| void | terminalSerialStreamCallback (modm::IOStream &outputStream) override |
Interface for reading IMU data. Connects to the terminal serial driver and allows the user to query gyro, accel, angle, and temperature data. Single query and streaming modes supported.
|
inline |
| void tap::communication::sensors::imu::ImuTerminalSerialHandler::init | ( | ) |
|
overridevirtual |
| [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. Implements tap::communication::serial::TerminalSerialCallbackInterface.
|
overridevirtual |
Called repeatedly by the TerminalSerial when in streaming mode.
Implements tap::communication::serial::TerminalSerialCallbackInterface.