mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-17 05:15:23 +03:00
Remove unnecessary parameters from profiles
`fw_loiter_direction` was in control profiles. There's no reason why this would want to be changed with different control parameters. It's purely a pilot preference. This has been moved to `navConfig.fw` 'fw_min_throttle_down_pitch` was in the battery profiles. This command is really something that is set based on the airframe and it's glide ratio. Battery type or performance does not effect this. Moved to `navConfig.fw`
This commit is contained in:
parent
054de8f706
commit
541bbd856f
11 changed files with 24 additions and 26 deletions
|
@ -240,11 +240,11 @@ void resetFixedWingPositionController(void)
|
|||
static int8_t loiterDirection(void) {
|
||||
int8_t dir = 1; //NAV_LOITER_RIGHT
|
||||
|
||||
if (pidProfile()->loiter_direction == NAV_LOITER_LEFT) {
|
||||
if (navConfig()->fw.loiter_direction == NAV_LOITER_LEFT) {
|
||||
dir = -1;
|
||||
}
|
||||
|
||||
if (pidProfile()->loiter_direction == NAV_LOITER_YAW) {
|
||||
if (navConfig()->fw.loiter_direction == NAV_LOITER_YAW) {
|
||||
|
||||
if (rcCommand[YAW] < -250) {
|
||||
loiterDirYaw = 1; //RIGHT //yaw is contrariwise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue