Pressure alt fix from @AvSquirrel.

pull/58/head v0.3b4
Christopher Young 2015-09-23 23:12:48 -04:00
rodzic 324bef7701
commit 75f60562af
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -179,8 +179,8 @@ func makeOwnshipReport() bool {
if isTempPressValid() {
alt = uint16(mySituation.pressure_alt)
alt = (alt + 1000) / 25
}
alt = (alt + 1000) / 25
alt = alt & 0xFFF // Should fit in 12 bits.
msg[11] = byte((alt & 0xFF0) >> 4) // Altitude.