Go to the source code of this file.
Namespaces | |
SensorAccessor | |
Enumerations | |
enum | SensorAccessor::Command { SensorAccessor::GET_SERIAL_NUMBER = 1, SensorAccessor::GET_FIRMWARE_VERSION = 2, SensorAccessor::GET_PRODUCTION_YEAR = 4, SensorAccessor::SET_ZERO = 8 } |
enum | rq_sensor_state_values { RQ_STATE_INIT, RQ_STATE_READ_INFO, RQ_STATE_START_STREAM, RQ_STATE_RUN } |
Functions | |
enum rq_sensor_state_values | rq_sensor_get_current_state (void) |
Returns this module's state machine current state. More... | |
INT_8 | rq_sensor_state (unsigned int max_retries) |
INT_8 | rq_sensor_state (unsigned int max_retries, const std::string &ftdi_id) |
void | rq_state_do_zero_force_flag (void) |
Command a zero on the sensor. More... | |
void | rq_state_get_command (INT_8 const *const name, INT_8 *const value) |
bool | rq_state_get_command (INT_8 command, INT_8 *const value) |
Gets the value of high level information from the sensor. More... | |
float | rq_state_get_received_data (UINT_8 i) |
bool | rq_state_got_new_message (void) |
Returns true if a stream message is available. More... | |
Definition at line 66 of file rq_sensor_state.h.
enum rq_sensor_state_values rq_sensor_get_current_state | ( | void | ) |
Returns this module's state machine current state.
Definition at line 322 of file rq_sensor_state.cpp.
INT_8 rq_sensor_state | ( | unsigned int | max_retries | ) |
Definition at line 109 of file rq_sensor_state.cpp.
INT_8 rq_sensor_state | ( | unsigned int | max_retries, |
const std::string & | ftdi_id | ||
) |
Definition at line 69 of file rq_sensor_state.cpp.
void rq_state_do_zero_force_flag | ( | void | ) |
Command a zero on the sensor.
Definition at line 338 of file rq_sensor_state.cpp.
Definition at line 296 of file rq_sensor_state.cpp.
Gets the value of high level information from the sensor.
command | has to be in [1, 2, 4, 8] corresponding to SerialNumber, FirmwareVersion and ProductionYear, Reset |
value | return string with requested Data |
values correnspond to constants in sensor_accessor.srv
Definition at line 263 of file rq_sensor_state.cpp.
float rq_state_get_received_data | ( | UINT_8 | i | ) |
Definition at line 242 of file rq_sensor_state.cpp.
bool rq_state_got_new_message | ( | void | ) |
Returns true if a stream message is available.
Definition at line 330 of file rq_sensor_state.cpp.