Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
tap::motor::DjiMotorTerminalSerialHandler Class Reference

#include <dji_motor_terminal_serial_handler.hpp>

Inheritance diagram for tap::motor::DjiMotorTerminalSerialHandler:
Collaboration diagram for tap::motor::DjiMotorTerminalSerialHandler:

Public Member Functions

 DjiMotorTerminalSerialHandler (Drivers *drivers)
 
mockable void init ()
 
bool terminalSerialCallback (char *inputLine, modm::IOStream &outputStream, bool streamingEnabled) override
 
void terminalSerialStreamCallback (modm::IOStream &outputStream) override
 

Static Public Attributes

static constexpr char HEADER [] = "motorinfo"
 

Constructor & Destructor Documentation

◆ DjiMotorTerminalSerialHandler()

tap::motor::DjiMotorTerminalSerialHandler::DjiMotorTerminalSerialHandler ( Drivers drivers)
inline

Member Function Documentation

◆ init()

void tap::motor::DjiMotorTerminalSerialHandler::init ( )

◆ terminalSerialCallback()

bool tap::motor::DjiMotorTerminalSerialHandler::terminalSerialCallback ( char *  inputLine,
modm::IOStream &  outputStream,
bool  streamingEnabled 
)
overridevirtual
Parameters
[in]inputLineThe user input to be processed.
[out]outputStreamThe stream to write information to.
[in]streamingEnabledSet to true when the streaming is initially enabled. Subsequent interactions with the callback handler will be via terminalSerialStreamCallback until streaming has been disabled.
Returns
true if the inputLine was valid and was parsed correctly, false otherwise.

Implements tap::communication::serial::TerminalSerialCallbackInterface.

◆ terminalSerialStreamCallback()

void tap::motor::DjiMotorTerminalSerialHandler::terminalSerialStreamCallback ( modm::IOStream &  outputStream)
overridevirtual

Called repeatedly by the TerminalSerial when in streaming mode.

Implements tap::communication::serial::TerminalSerialCallbackInterface.

Member Data Documentation

◆ HEADER

constexpr char tap::motor::DjiMotorTerminalSerialHandler::HEADER = "motorinfo"
staticconstexpr

The documentation for this class was generated from the following files: