mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-14 11:59:56 +03:00
Adds heading target logic condition
- allows for a slider/global-var to set the desired heading - addresses issue #6642
This commit is contained in:
parent
ba3d0ab5b4
commit
0b13c2cd8d
2 changed files with 8 additions and 1 deletions
|
@ -317,6 +317,12 @@ static int logicConditionCompute(
|
|||
return true;
|
||||
break;
|
||||
|
||||
case LOGIC_CONDITION_SET_HEADING_TARGET:
|
||||
temporaryValue = CENTIDEGREES_TO_DEGREES(wrap_36000(DEGREES_TO_CENTIDEGREES(operandA)));
|
||||
updateHeadingHoldTarget(temporaryValue);
|
||||
return temporaryValue;
|
||||
break;
|
||||
|
||||
default:
|
||||
return false;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue