1
0
Fork 0
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:
Tim O'Brien 2021-02-24 13:59:47 -08:00
parent ba3d0ab5b4
commit 0b13c2cd8d
2 changed files with 8 additions and 1 deletions

View file

@ -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;