Skip to content

Commit

Permalink
Merge pull request iNavFlight#9411 from sdellava/master
Browse files Browse the repository at this point in the history
Added Compass Calibration programmable operation
  • Loading branch information
DzikuVx authored Dec 31, 2023
2 parents af0b3f4 + 740c7e0 commit a90203c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/main/programming/logic_condition.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,13 @@ static int logicConditionCompute(
return true;
break;

#ifdef USE_MAG
case LOGIC_CONDITION_RESET_MAG_CALIBRATION:

ENABLE_STATE(CALIBRATE_MAG);
return true;
break;
#endif
case LOGIC_CONDITION_SET_VTX_POWER_LEVEL:
#if defined(USE_VTX_CONTROL)
#if(defined(USE_VTX_SMARTAUDIO) || defined(USE_VTX_TRAMP))
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 @@ -83,7 +83,8 @@ typedef enum {
LOGIC_CONDITION_APPROX_EQUAL = 51,
LOGIC_CONDITION_LED_PIN_PWM = 52,
LOGIC_CONDITION_DISABLE_GPS_FIX = 53,
LOGIC_CONDITION_LAST = 54,
LOGIC_CONDITION_RESET_MAG_CALIBRATION = 54,
LOGIC_CONDITION_LAST = 55,
} logicOperation_e;

typedef enum logicOperandType_s {
Expand Down

0 comments on commit a90203c

Please sign in to comment.