Skip to content

Commit

Permalink
Fix incorrect bit shift in Source Integrity Level
Browse files Browse the repository at this point in the history
Resolves #52
  • Loading branch information
Douglasdc3 committed Apr 4, 2023
1 parent 93d2203 commit 12ff85f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public SurfaceOperationalMode(int data) {
acasRA = (data & 0b0010000000000000) != 0 ? AcasState.RA_ACTIVE : AcasState.RA_NOT_ACTIVE;
acasIdent = (data & 0b0001000000000000) != 0;
singleAntennaFlag = (data & 0b0000010000000000) != 0;
systemDesignAssurance = SourceIntegrityLevel.from((data & 0b0000001100000000) >>> 7);
systemDesignAssurance = SourceIntegrityLevel.from((data & 0b0000001100000000) >>> 8);
int gpsAntennaOffset = (data & 0b0000000011111111);

gpsLateralOffset = (gpsAntennaOffset & 0b11100000) >>> 5;
Expand Down

0 comments on commit 12ff85f

Please sign in to comment.