mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-13 11:29:56 +03:00
Merge branch 'master' of https://github.com/RomanLut/inav into osd-joystick
This commit is contained in:
commit
8ed76152a8
29 changed files with 253 additions and 170 deletions
|
@ -716,6 +716,10 @@ static int logicConditionGetFlightOperandValue(int operand) {
|
|||
return constrain(attitude.values.pitch / 10, -180, 180);
|
||||
break;
|
||||
|
||||
case LOGIC_CONDITION_OPERAND_FLIGHT_ATTITUDE_YAW: // deg
|
||||
return constrain(attitude.values.yaw / 10, 0, 360);
|
||||
break;
|
||||
|
||||
case LOGIC_CONDITION_OPERAND_FLIGHT_IS_ARMED: // 0/1
|
||||
return ARMING_FLAG(ARMED) ? 1 : 0;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue