GPS/AHRS on/off settings portion of status message.

pull/166/head
Christopher Young 2015-12-26 16:52:32 -05:00
rodzic 364f45603b
commit 7fb784dd0b
1 zmienionych plików z 10 dodań i 0 usunięć

Wyświetl plik

@ -413,6 +413,16 @@ func makeSXHeartbeat() []byte {
msg[13] = msg[13] | (1 << 6)
}
// Valid/Enabled: GPS Enabled portion.
if globalSettings.GPS_Enabled {
msg[13] = msg[13] | (1 << 7)
}
// Valid/Enabled: AHRS Enabled portion.
if globalSettings.AHRS_Enabled {
msg[12] = 1 << 0
}
// Valid/Enabled: last bit unused.
// Connected hardware: number of radios.