Clarify some comments in v1 TSS

This commit is contained in:
Oliver Jowett 2019-03-19 18:23:49 +00:00
parent 45886edc40
commit 56aa2f7d1e

View file

@ -1053,7 +1053,7 @@ static void decodeESTargetStatus(struct modesMessage *mm, int check_imf)
// nothing // nothing
break; break;
} }
// 10: target altitude type (ignored) // 10: target altitude type (MSL or Baro, ignored)
// 11: backward compatibility bit, always 0 // 11: backward compatibility bit, always 0
// 12-13: target alt capabilities (ignored) // 12-13: target alt capabilities (ignored)
// 14-15: vertical mode // 14-15: vertical mode
@ -1081,7 +1081,7 @@ static void decodeESTargetStatus(struct modesMessage *mm, int check_imf)
break; break;
} }
// 16-25: altitude // 16-25: target altitude
int alt = -1000 + 100 * getbits(me, 16, 25); int alt = -1000 + 100 * getbits(me, 16, 25);
switch (mm->nav.altitude_source) { switch (mm->nav.altitude_source) {
case NAV_ALT_MCP: case NAV_ALT_MCP:
@ -1109,7 +1109,7 @@ static void decodeESTargetStatus(struct modesMessage *mm, int check_imf)
mm->nav.heading_type = HEADING_MAGNETIC_OR_TRUE; mm->nav.heading_type = HEADING_MAGNETIC_OR_TRUE;
} }
} }
// 38-39: horiontal mode // 38-39: horizontal mode
switch (getbits(me, 38, 39)) { switch (getbits(me, 38, 39)) {
case 1: // acquiring case 1: // acquiring
case 2: // maintaining case 2: // maintaining