DUNE: Uniform Navigational Environment
2017.01.0
|
Classes | |
struct | AMCMotorState |
Public Types | |
enum | AMCParserStates { PS_PREAMBLE, PS_DATA, PS_CS } |
Public Member Functions | |
Parser (void) | |
~Parser (void) | |
bool | parse (uint8_t byte) |
bool | translate (void) |
Public Attributes | |
AMCMotorState | m_motor |
|
inline |
|
inline |
|
inline |
Parse message received.
References PS_CS, PS_DATA, and PS_PREAMBLE.
Referenced by Actuators::AMC::Task::checkSerialPort().
|
inline |
Filter data received of AMC board.
References Actuators::AMC::Parser::AMCMotorState::current, m_motor, Actuators::AMC::Parser::AMCMotorState::rpm, Actuators::AMC::Parser::AMCMotorState::state, Actuators::AMC::Parser::AMCMotorState::tmp, and Actuators::AMC::Parser::AMCMotorState::volt.
Referenced by Actuators::AMC::Task::checkDataMotor(), and Actuators::AMC::Task::checkStateMotor().
AMCMotorState Actuators::AMC::Parser::m_motor |
Motor state.
Referenced by Actuators::AMC::Task::checkStateMotor(), Actuators::AMC::Task::dispatchAllData(), Actuators::AMC::Task::setRpmValues(), Actuators::AMC::Task::task(), and translate().