Set AOG_VALID for DF-17/18 metype 19

This commit is contained in:
Malcolm Robb 2013-05-24 11:10:16 +01:00
parent 77bd1f40dc
commit 4c0ed6d5f1

View file

@ -1898,6 +1898,9 @@ void decodeModesMessage(struct modesMessage *mm, unsigned char *msg) {
} 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) ) {
int vert_rate = ((msg[8] & 0x07) << 6) | (msg[9] >> 2);
if (vert_rate) {