Invalid values - 0xFF.

Addresses #150.
pull/182/head
Christopher Young 2015-12-18 14:35:42 -05:00
rodzic 71400227dc
commit e7a19f2296
1 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -368,10 +368,10 @@ func makeSXHeartbeat() []byte {
msg[7] = byte(stratuxBuild[3])
//TODO: Hardware revision.
msg[8] = 0
msg[9] = 0
msg[10] = 0
msg[11] = 0
msg[8] = 0xFF
msg[9] = 0xFF
msg[10] = 0xFF
msg[11] = 0xFF
// Valid and enabled flags.
// Valid/Enabled: GPS portion.
@ -423,7 +423,7 @@ func makeSXHeartbeat() []byte {
msg[16] = byte(globalStatus.GPS_satellites_locked)
//FIXME: Number of satellites connected. ??
msg[17] = 0
msg[17] = 0xFF
// Summarize number of UAT and 1090ES traffic targets for reports that follow.
var uat_traffic_targets uint16
@ -451,7 +451,7 @@ func makeSXHeartbeat() []byte {
msg[24] = byte((globalStatus.ES_messages_last_minute & 0xFF00) >> 8)
msg[25] = byte(globalStatus.ES_messages_last_minute & 0xFF)
//FIXME: CPU temperature.
// CPU temperature.
v := uint16(float32(10.0)*globalStatus.CPUTemp) + 32768
msg[26] = byte((v & 0xFF00) >> 8)