Set AOG_VALID for DF-17/18 metype 19
This commit is contained in:
parent
77bd1f40dc
commit
4c0ed6d5f1
|
@ -1898,6 +1898,9 @@ void decodeModesMessage(struct modesMessage *mm, unsigned char *msg) {
|
||||||
|
|
||||||
} else if (metype == 19) { // Airborne Velocity Message
|
} else if (metype == 19) { // Airborne Velocity Message
|
||||||
|
|
||||||
|
// Presumably airborne if we get an Airborne Velocity Message
|
||||||
|
mm->bFlags |= MODES_ACFLAGS_AOG_VALID;
|
||||||
|
|
||||||
if ( (mesub >= 1) && (mesub <= 4) ) {
|
if ( (mesub >= 1) && (mesub <= 4) ) {
|
||||||
int vert_rate = ((msg[8] & 0x07) << 6) | (msg[9] >> 2);
|
int vert_rate = ((msg[8] & 0x07) << 6) | (msg[9] >> 2);
|
||||||
if (vert_rate) {
|
if (vert_rate) {
|
||||||
|
|
Loading…
Reference in a new issue