#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) |
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 1001 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringDevInfo | ( | const dev_info_t & | info, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 1297 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringDualIMU | ( | const dual_imu_t & | imu, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 823 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringGpsPos | ( | const gps_pos_t & | gps, |
const p_data_hdr_t & | hdr, | ||
const string | didName | ||
) |
Definition at line 1031 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 604 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringINS2 | ( | const ins_2_t & | ins2, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 655 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringINS3 | ( | const ins_3_t & | ins3, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 711 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringINS4 | ( | const ins_4_t & | ins4, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 767 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringMag | ( | const magnetometer_t & | mag, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 933 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringMagCal | ( | const mag_cal_t & | mag, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 971 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringPreintegratedImu | ( | const preintegrated_imu_t & | imu, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 876 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringRawGPS | ( | const gps_raw_t & | raw, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 1157 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 1134 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 1096 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringRTOS | ( | const rtos_info_t & | info, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 1288 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringSensorsADC | ( | const sys_sensors_adc_t & | sensorsADC, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 1335 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringSurveyIn | ( | const survey_in_t & | survey, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 1174 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringSysParams | ( | const sys_params_t & | sys, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 1220 of file ISDisplay.cpp.
string cInertialSenseDisplay::DataToStringSysSensors | ( | const sys_sensors_t & | sensors, |
const p_data_hdr_t & | hdr | ||
) |
Definition at line 1248 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 587 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 548 of file ISDisplay.cpp.
|
private |
Definition at line 446 of file ISDisplay.cpp.
|
private |
Definition at line 89 of file ISDisplay.h.
|
private |
Definition at line 100 of file ISDisplay.h.
|
private |
Definition at line 90 of file ISDisplay.h.
|
private |
Definition at line 91 of file ISDisplay.h.