48 #define ST24_DATA_LEN_MAX   64    49 #define ST24_STX1       0x55    50 #define ST24_STX2       0x55   170              uint16_t *channels, uint16_t max_chan_count);
 uint8_t motorStatus
1 bit per motor for status 1=good, 0= fail 
 
uint16_t t
packet counter or clock 
 
uint8_t pressCompassStatus
baro / compass status 
 
uint8_t lost_count
Number of UART packets sent since reception of last RF frame (100 frame means RC timeout of 1s) ...
 
uint16_t t
packet counter or clock 
 
uint8_t type
from enum ST24_PACKET_TYPE 
 
uint8_t header2
0x55 for a valid packet 
 
uint8_t nsat
number of satellites 
 
int32_t lon
longitude (degrees) +/- 180 deg 
 
uint16_t t
packet counter or clock 
 
uint8_t rssi
signal strength 
 
#define ST24_DATA_LEN_MAX
 
RC Channel data (12 channels). 
 
uint8_t st24_common_crc8(uint8_t *ptr, uint8_t len)
CRC8 implementation for ST24 protocol. 
 
int16_t vz
velocity 0.01m res, +/-320.00 North-East- Down 
 
uint8_t voltage
25.4V voltage = 5 + 255*0.1 = 30.5V, min=5V 
 
uint8_t imuStatus
inertial measurement unit status 
 
uint8_t crc8
crc8 checksum, calculated by st24_common_crc8 and including fields length, type and st24_data ...
 
RC Channel data (12 channels). 
 
uint8_t rssi
signal strength 
 
int16_t yaw
0.01 degree resolution 
 
int32_t alt
0.01m resolution, altitude (meters) 
 
int32_t lat
lattitude (degrees) +/- 90 deg 
 
__EXPORT int st24_decode(uint8_t byte, uint8_t *rssi, uint8_t *lost_count, uint16_t *channel_count, uint16_t *channels, uint16_t max_chan_count)
Decoder for ST24 protocol. 
 
uint8_t current
0.5A resolution 
 
uint8_t header1
0x55 for a valid packet 
 
uint8_t length
length includes type, data, and crc = sizeof(type)+sizeof(data[payload_len])+sizeof(crc8) ...
 
uint8_t lost_count
Number of UART packets sent since reception of last RF frame (100 frame means RC timeout of 1s) ...