Skip to content

Commit

Permalink
BDS53: if ROCD is positive is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglasdc3 committed Nov 15, 2020
1 parent 580d944 commit 1a89a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/aero/t2s/modes/decoder/df/bds/Bds53.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public Bds53(short[] data) {
}

boolean isRocdNegative = (data[9] & 0b00000001) == 0b00000001;
rocd = data[10] * VS_ACCURACY * (isRocdNegative ? -1 : 0);
rocd = data[10] * VS_ACCURACY * (isRocdNegative ? -1 : 1);
if (!statusRocd && rocd != 0) {
invalidate();
return;
Expand Down

0 comments on commit 1a89a40

Please sign in to comment.