#include <ISDisplay.h>
Classes | |
struct | sDidStats |
Public Types | |
enum | eDisplayMode { DMODE_PRETTY, DMODE_SCROLL, DMODE_STATS, DMODE_QUIET } |
Public Member Functions | |
cInertialSenseDisplay () | |
void | Clear (void) |
string | Connected () |
bool | ControlCWasPressed () |
void | DataToStats (const p_data_t *data) |
string | DataToString (const p_data_t *data) |
string | DataToStringBaro (const barometer_t &baro, const p_data_hdr_t &hdr) |
string | DataToStringDevInfo (const dev_info_t &info, const p_data_hdr_t &hdr) |
string | DataToStringDualIMU (const dual_imu_t &imu, const p_data_hdr_t &hdr) |
string | DataToStringGpsPos (const gps_pos_t &gps, const p_data_hdr_t &hdr, const string didName) |
string | DataToStringIMU (const imu_t &imu, const p_data_hdr_t &hdr) |
string | DataToStringINS1 (const ins_1_t &ins1, const p_data_hdr_t &hdr) |
string | DataToStringINS2 (const ins_2_t &ins2, const p_data_hdr_t &hdr) |
string | DataToStringINS3 (const ins_3_t &ins3, const p_data_hdr_t &hdr) |
string | DataToStringINS4 (const ins_4_t &ins4, const p_data_hdr_t &hdr) |
string | DataToStringMag (const magnetometer_t &mag, const p_data_hdr_t &hdr) |
string | DataToStringMagCal (const mag_cal_t &mag, const p_data_hdr_t &hdr) |
string | DataToStringPreintegratedImu (const preintegrated_imu_t &imu, const p_data_hdr_t &hdr) |
string | DataToStringRawGPS (const gps_raw_t &raw, const p_data_hdr_t &hdr) |
string | DataToStringRtkMisc (const gps_rtk_misc_t &sol, const p_data_hdr_t &hdr, const string didName) |
string | DataToStringRtkRel (const gps_rtk_rel_t &gps, const p_data_hdr_t &hdr, const string didName) |
string | DataToStringRTOS (const rtos_info_t &info, const p_data_hdr_t &hdr) |
string | DataToStringSensorsADC (const sys_sensors_adc_t &sensorsADC, const p_data_hdr_t &hdr) |
string | DataToStringSurveyIn (const survey_in_t &survey, const p_data_hdr_t &hdr) |
string | DataToStringSysParams (const sys_params_t &sys, const p_data_hdr_t &hdr) |
string | DataToStringSysSensors (const sys_sensors_t &sensors, const p_data_hdr_t &hdr) |
string | DataToStringWheelEncoder (const wheel_encoder_t &enc, const p_data_hdr_t &hdr) |
eDisplayMode | GetDisplayMode () |
string | Goodbye () |
void | GoToColumnAndRow (int x, int y) |
void | GoToRow (int y) |
string | Hello () |
void | Home (void) |
char * | InsStatusToSolStatusString (char *ptr, char *ptrEnd, const uint32_t insStatus) |
void | ProcessData (p_data_t *data, bool enableReplay=false, double replaySpeedX=1.0) |
int | ReadKey () |
string | Replay (double speed=1.0) |
void | SetDisplayMode (eDisplayMode mode) |
void | ShowCursor (bool visible) |
void | ShutDown () |
char * | StatusToString (char *ptr, char *ptrEnd, const uint32_t insStatus, const uint32_t hdwStatus) |
Private Member Functions | |
void | DataToVector (const p_data_t *data) |
string | VectortoString () |
Private Attributes | |
vector< string > | m_didMsgs |
vector< sDidStats > | m_didStats |
eDisplayMode | m_displayMode |
uint16_t | m_rxCount |
Utility functions for displaying data
Definition at line 30 of file ISDisplay.h.
Enumerator | |
---|---|
DMODE_PRETTY | |
DMODE_SCROLL | |
DMODE_STATS | |
DMODE_QUIET |
Definition at line 33 of file ISDisplay.h.
cInertialSenseDisplay::cInertialSenseDisplay | ( | ) |
Definition at line 83 of file ISDisplay.cpp.
void cInertialSenseDisplay::Clear | ( | void | ) |
Definition at line 132 of file ISDisplay.cpp.
string cInertialSenseDisplay::Connected | ( | ) |
Definition at line 207 of file ISDisplay.cpp.
bool cInertialSenseDisplay::ControlCWasPressed | ( | ) |
Definition at line 278 of file ISDisplay.cpp.
void cInertialSenseDisplay::DataToStats | ( | const p_data_t * | data | ) |
Definition at line 472 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToString | ( | const p_data_t * | data | ) |
Definition at line 500 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringBaro | ( | const barometer_t & | baro, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 1002 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringDevInfo | ( | const dev_info_t & | info, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 1298 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringDualIMU | ( | const dual_imu_t & | imu, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 824 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringGpsPos | ( | const gps_pos_t & | gps, |
const p_data_hdr_t & | hdr, | ||
const string | didName | ||
) |
Definition at line 1032 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringIMU | ( | const imu_t & | imu, |
const p_data_hdr_t & | hdr | ||
) |
string cInertialSenseDisplay::DataToStringINS1 | ( | const ins_1_t & | ins1, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 605 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringINS2 | ( | const ins_2_t & | ins2, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 656 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringINS3 | ( | const ins_3_t & | ins3, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 712 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringINS4 | ( | const ins_4_t & | ins4, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 768 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringMag | ( | const magnetometer_t & | mag, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 934 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringMagCal | ( | const mag_cal_t & | mag, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 972 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringPreintegratedImu | ( | const preintegrated_imu_t & | imu, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 877 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringRawGPS | ( | const gps_raw_t & | raw, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 1158 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringRtkMisc | ( | const gps_rtk_misc_t & | sol, |
const p_data_hdr_t & | hdr, | ||
const string | didName | ||
) |
Definition at line 1135 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringRtkRel | ( | const gps_rtk_rel_t & | gps, |
const p_data_hdr_t & | hdr, | ||
const string | didName | ||
) |
Definition at line 1097 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringRTOS | ( | const rtos_info_t & | info, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 1289 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringSensorsADC | ( | const sys_sensors_adc_t & | sensorsADC, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 1336 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringSurveyIn | ( | const survey_in_t & | survey, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 1175 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringSysParams | ( | const sys_params_t & | sys, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 1221 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringSysSensors | ( | const sys_sensors_t & | sensors, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 1249 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringWheelEncoder | ( | const wheel_encoder_t & | enc, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 1386 of file ISDisplay.cpp.
|
private |
Definition at line 461 of file ISDisplay.cpp.
|
inline |
Definition at line 44 of file ISDisplay.h.
string cInertialSenseDisplay::Goodbye | ( | ) |
Definition at line 221 of file ISDisplay.cpp.
void cInertialSenseDisplay::GoToColumnAndRow | ( | int | x, |
int | y | ||
) |
Definition at line 186 of file ISDisplay.cpp.
void cInertialSenseDisplay::GoToRow | ( | int | y | ) |
Definition at line 170 of file ISDisplay.cpp.
string cInertialSenseDisplay::Hello | ( | ) |
Definition at line 202 of file ISDisplay.cpp.
void cInertialSenseDisplay::Home | ( | void | ) |
Definition at line 154 of file ISDisplay.cpp.
char * cInertialSenseDisplay::InsStatusToSolStatusString | ( | char * | ptr, |
char * | ptrEnd, | ||
const uint32_t | insStatus | ||
) |
Definition at line 588 of file ISDisplay.cpp.
void cInertialSenseDisplay::ProcessData | ( | p_data_t * | data, |
bool | enableReplay = false , |
||
double | replaySpeedX = 1.0 |
||
) |
Definition at line 283 of file ISDisplay.cpp.
int cInertialSenseDisplay::ReadKey | ( | ) |
Definition at line 226 of file ISDisplay.cpp.
string cInertialSenseDisplay::Replay | ( | double | speed = 1.0 | ) |
Definition at line 212 of file ISDisplay.cpp.
|
inline |
Definition at line 43 of file ISDisplay.h.
void cInertialSenseDisplay::ShowCursor | ( | bool | visible | ) |
Definition at line 108 of file ISDisplay.cpp.
void cInertialSenseDisplay::ShutDown | ( | ) |
Definition at line 125 of file ISDisplay.cpp.
char * cInertialSenseDisplay::StatusToString | ( | char * | ptr, |
char * | ptrEnd, | ||
const uint32_t | insStatus, | ||
const uint32_t | hdwStatus | ||
) |
Definition at line 549 of file ISDisplay.cpp.
|
private |
Definition at line 446 of file ISDisplay.cpp.
|
private |
Definition at line 90 of file ISDisplay.h.
|
private |
Definition at line 101 of file ISDisplay.h.
|
private |
Definition at line 91 of file ISDisplay.h.
|
private |
Definition at line 92 of file ISDisplay.h.