Rename TARGET_* -> INTENT_ALT_*
Rearrange the intent tracking a bit.
This commit is contained in:
parent
2142d2edf5
commit
27b0e9c40f
4 changed files with 23 additions and 23 deletions
12
comm_b.c
12
comm_b.c
|
|
@ -391,23 +391,23 @@ static int decodeBDS40(struct modesMessage *mm, bool store)
|
|||
if (source_valid) {
|
||||
switch (source_raw) {
|
||||
case 0:
|
||||
mm->intent.altitude_source = TARGET_UNKNOWN;
|
||||
mm->intent.altitude_source = INTENT_ALT_UNKNOWN;
|
||||
break;
|
||||
case 1:
|
||||
mm->intent.altitude_source = TARGET_AIRCRAFT;
|
||||
mm->intent.altitude_source = INTENT_ALT_AIRCRAFT;
|
||||
break;
|
||||
case 2:
|
||||
mm->intent.altitude_source = TARGET_MCP;
|
||||
mm->intent.altitude_source = INTENT_ALT_MCP;
|
||||
break;
|
||||
case 3:
|
||||
mm->intent.altitude_source = TARGET_FMS;
|
||||
mm->intent.altitude_source = INTENT_ALT_FMS;
|
||||
break;
|
||||
default:
|
||||
mm->intent.altitude_source = TARGET_INVALID;
|
||||
mm->intent.altitude_source = INTENT_ALT_INVALID;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
mm->intent.altitude_source = TARGET_INVALID;
|
||||
mm->intent.altitude_source = INTENT_ALT_INVALID;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue