Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed BufferedSerial ConfigFile
Diff: SPATIAL/SPATIAL.h
- Revision:
- 1:9530746906b6
- Parent:
- 0:3473b92e991e
--- a/SPATIAL/SPATIAL.h Tue Jun 12 01:05:50 2018 +0000 +++ b/SPATIAL/SPATIAL.h Wed Nov 28 13:06:23 2018 +0000 @@ -4,24 +4,39 @@ #include "mbed.h" - class SPATIAL { public: - void Init(); - void SPATIAL_ID_20_Parsing(); + void Init(int); void SPATIAL_RECEIVE(); double LATITUDE, LONGITUDE, HEIGHT; - float Vn, Ve, Vd, ROLL, PITCH, YAW, ROLL_RATE, PITCH_RATE, YAW_RATE; + float Vx, Vy, Vz, ROLL, PITCH, YAW, ROLL_RATE, PITCH_RATE, YAW_RATE; uint32_t UNIX_TIME; - bool SPATIAL_ID_20_BOOL, SPATIAL_ID_20_PARSING_BOOL; + bool SPATIAL_ID_39_BOOL, SPATIAL_ID_39_PARSING_BOOL; + bool SPATIAL_ID_42_BOOL, SPATIAL_ID_42_PARSING_BOOL; + bool SPATIAL_ID_35_BOOL, SPATIAL_ID_35_PARSING_BOOL; + bool SPATIAL_ID_32_BOOL, SPATIAL_ID_32_PARSING_BOOL; + bool SPATIAL_ID_30_BOOL, SPATIAL_ID_30_PARSING_BOOL; + bool SPATIAL_ID_22_BOOL, SPATIAL_ID_22_PARSING_BOOL; + int HZ_CNT; int SATELLITE_NUM; + uint8_t SYSTEM_STATUS,FILTER_STATUS; + bool SPATIAL_STABLE(); + float DECLINATION_ANGLE; private: int SPATIAL_BUF_CNT; - unsigned char SPATIAL_BUF[100], SPATIAL_ID[5]; + unsigned char SPATIAL_ID[5]; + unsigned char SPATIAL_42_BUF[12], SPATIAL_39_BUF[12], SPATIAL_35_BUF[12], SPATIAL_32_BUF[24], SPATIAL_22_BUF[14], SPATIAL_30_BUF[13]; uint16_t CRC_INPUT; - - + void SPATIAL_ID_39_Parsing(); + void SPATIAL_ID_42_Parsing(); + void SPATIAL_ID_35_Parsing(); + void SPATIAL_ID_32_Parsing(); + void SPATIAL_ID_30_Parsing(); + void SPATIAL_ID_22_Parsing(); + int SENSOR_STABLE_CNT; + bool SENSOR_STABLE_OK; + bool SENSOR_WAIT_BOOL; };