Skip to content

Commit

Permalink
Fix typo in gnss - baro difference
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglasdc3 committed Nov 16, 2020
1 parent 1a019b1 commit e722e0b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected void decodeCommonInformation() {
rocd *= -1;
}

gnssAltitudeDifferenceFromBaro = data[10] * 0b01111111;
gnssAltitudeDifferenceFromBaro = data[10] & 0b01111111;
gnssAltitudeDifferenceFromBaroAvailable = gnssAltitudeDifferenceFromBaro != 0;
gnssAltitudeDifferenceFromBaro = (gnssAltitudeDifferenceFromBaro - 1) * 25;
if ((data[10] & 0b10000000) != 0) {
Expand Down

0 comments on commit e722e0b

Please sign in to comment.