Skip to content

Commit

Permalink
add MIXER_TRANSITION_ACTIVE OPERAND
Browse files Browse the repository at this point in the history
  • Loading branch information
shota3527 committed Sep 26, 2023
1 parent 0e93fce commit e108558
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/programming/logic_condition.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,10 @@ static int logicConditionGetFlightOperandValue(int operand) {
return currentMixerProfileIndex + 1;
break;

case LOGIC_CONDITION_OPERAND_FLIGHT_MIXER_TRANSITION_ACTIVE: //0,1
return isMixerTransitionMixing ? 1 : 0;
break;

case LOGIC_CONDITION_OPERAND_FLIGHT_LOITER_RADIUS:
return getLoiterRadius(navConfig()->fw.loiter_radius);

Expand Down
3 changes: 2 additions & 1 deletion src/main/programming/logic_condition.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ typedef enum {
LOGIC_CONDITION_OPERAND_FLIGHT_AGL_STATUS, //0,1,2 // 35
LOGIC_CONDITION_OPERAND_FLIGHT_AGL, //0,1,2 // 36
LOGIC_CONDITION_OPERAND_FLIGHT_RANGEFINDER_RAW, //int // 37
LOGIC_CONDITION_OPERAND_FLIGHT_ACTIVE_MIXER_PROFILE, //int // TBD
LOGIC_CONDITION_OPERAND_FLIGHT_ACTIVE_MIXER_PROFILE, //int // 39
LOGIC_CONDITION_OPERAND_FLIGHT_MIXER_TRANSITION_ACTIVE, //0,1 // 40
} logicFlightOperands_e;

typedef enum {
Expand Down

0 comments on commit e108558

Please sign in to comment.