diff --git a/docs/Settings.md b/docs/Settings.md index 3d3605b245..308c5fd783 100644 --- a/docs/Settings.md +++ b/docs/Settings.md @@ -5812,7 +5812,7 @@ Delay before disarming when requested by switch (ms) [0-1000] --- -### tailsitter_board_orientation +### tailsitter_orientation_offset Apply a 90 deg pitch offset in sensor aliment for tailsitter flying mode diff --git a/src/main/fc/settings.yaml b/src/main/fc/settings.yaml index 1ef73339e5..c68c611b05 100644 --- a/src/main/fc/settings.yaml +++ b/src/main/fc/settings.yaml @@ -1191,10 +1191,10 @@ groups: field: mixer_config.switchTransitionTimer min: 0 max: 200 - - name: tailsitter_board_orientation + - name: tailsitter_orientation_offset description: "Apply a 90 deg pitch offset in sensor aliment for tailsitter flying mode" default_value: OFF - field: mixer_config.tailsitterBoardOrientation + field: mixer_config.tailsitterOrientationOffset type: bool diff --git a/src/main/flight/mixer.c b/src/main/flight/mixer.c index 874f48c5c7..834841e658 100644 --- a/src/main/flight/mixer.c +++ b/src/main/flight/mixer.c @@ -187,7 +187,7 @@ void mixerUpdateStateFlags(void) ENABLE_STATE(ALTITUDE_CONTROL); } - if (currentMixerConfig.tailsitterBoardOrientation) { + if (currentMixerConfig.tailsitterOrientationOffset) { ENABLE_STATE(TAILSITTER); } else { DISABLE_STATE(TAILSITTER); diff --git a/src/main/flight/mixer_profile.c b/src/main/flight/mixer_profile.c index c250e5ce31..7b2590ff70 100644 --- a/src/main/flight/mixer_profile.c +++ b/src/main/flight/mixer_profile.c @@ -53,7 +53,7 @@ void pgResetFn_mixerProfiles(mixerProfile_t *instance) .PIDProfileLinking = SETTING_MIXER_PID_PROFILE_LINKING_DEFAULT, .automated_switch = SETTING_MIXER_AUTOMATED_SWITCH_DEFAULT, .switchTransitionTimer = SETTING_MIXER_SWITCH_TRANS_TIMER_DEFAULT, - .tailsitterBoardOrientation = SETTING_TAILSITTER_BOARD_ORIENTATION_DEFAULT, + .tailsitterOrientationOffset = SETTING_TAILSITTER_ORIENTATION_OFFSET_DEFAULT, }); for (int j = 0; j < MAX_SUPPORTED_MOTORS; j++) { diff --git a/src/main/flight/mixer_profile.h b/src/main/flight/mixer_profile.h index 040ae70347..947ca70155 100644 --- a/src/main/flight/mixer_profile.h +++ b/src/main/flight/mixer_profile.h @@ -18,7 +18,7 @@ typedef struct mixerConfig_s { bool PIDProfileLinking; bool automated_switch; int16_t switchTransitionTimer; - bool tailsitterBoardOrientation; + bool tailsitterOrientationOffset; } mixerConfig_t; typedef struct mixerProfile_s { mixerConfig_t mixer_config;