mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 01:35:35 +03:00
mixer and pid profile linking
This commit is contained in:
parent
3ad0991125
commit
203bb2a471
14 changed files with 87 additions and 69 deletions
|
@ -4177,7 +4177,7 @@ void navigationUsePIDs(void)
|
|||
);
|
||||
}
|
||||
|
||||
void navigationYawControlInit(void){
|
||||
void navigationInitYawControl(void){
|
||||
if (
|
||||
mixerConfig()->platformType == PLATFORM_BOAT ||
|
||||
mixerConfig()->platformType == PLATFORM_ROVER ||
|
||||
|
@ -4222,8 +4222,16 @@ void navigationInit(void)
|
|||
|
||||
/* Use system config */
|
||||
navigationUsePIDs();
|
||||
navigationYawControlInit();
|
||||
|
||||
|
||||
if (
|
||||
mixerConfig()->platformType == PLATFORM_BOAT ||
|
||||
mixerConfig()->platformType == PLATFORM_ROVER ||
|
||||
navConfig()->fw.useFwNavYawControl
|
||||
) {
|
||||
ENABLE_STATE(FW_HEADING_USE_YAW);
|
||||
} else {
|
||||
DISABLE_STATE(FW_HEADING_USE_YAW);
|
||||
}
|
||||
#if defined(NAV_NON_VOLATILE_WAYPOINT_STORAGE)
|
||||
/* configure WP missions at boot */
|
||||
#ifdef USE_MULTI_MISSION
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue