Skip to content

Commit 788eadf

Browse files
committed
When GCIB report is available check BDS is enabled
1 parent 822aeb5 commit 788eadf

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

mode-s/src/main/java/aero/t2s/modes/decoder/df/bds/Bds21.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
public class Bds21 extends Bds {
77
@Override
88
public boolean attemptDecode(Track track, short[] data) {
9-
if (track.getCapabilityReport().isAvailable() && !track.getCapabilityReport().isBds21()) {
10-
return false;
11-
}
12-
139
boolean aircraftRegistrationStatus = (data[4] & 0b10000000) != 0;
1410
boolean airlineRegistrationStatus = (data[9] & 0b00010000) != 0;
1511

mode-s/src/main/java/aero/t2s/modes/decoder/df/bds/Bds50.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public boolean attemptDecode(Track track, short[] data) {
135135
if (!statusRollAngle && (isLeftWingDown || rollAngle != 0)) {
136136
return false;
137137
}
138-
if (statusRollAngle && Math.abs(rollAngle) > 50) {
138+
if (statusRollAngle && (Math.abs(rollAngle) > 50 || Math.abs((Math.abs(track.getRollAngle()) - rollAngle)) > 30)) {
139139
return false;
140140
}
141141

0 commit comments

Comments
 (0)