mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-14 11:59:56 +03:00
parameter rename
This commit is contained in:
parent
4e47e14fea
commit
b9017cadcd
5 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -187,7 +187,7 @@ void mixerUpdateStateFlags(void)
|
|||
ENABLE_STATE(ALTITUDE_CONTROL);
|
||||
}
|
||||
|
||||
if (currentMixerConfig.tailsitterBoardOrientation) {
|
||||
if (currentMixerConfig.tailsitterOrientationOffset) {
|
||||
ENABLE_STATE(TAILSITTER);
|
||||
} else {
|
||||
DISABLE_STATE(TAILSITTER);
|
||||
|
|
|
@ -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++)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue