mirror of https://github.com/ArduPilot/ardupilot
added #if to wind compensation code
This commit is contained in:
parent
7961021895
commit
f240888b49
|
@ -579,11 +579,12 @@ static void set_mode(byte mode)
|
||||||
// removes the navigation from roll and pitch commands, but leaves the wind compensation
|
// removes the navigation from roll and pitch commands, but leaves the wind compensation
|
||||||
reset_nav();
|
reset_nav();
|
||||||
|
|
||||||
// removes the navigation from roll and pitch commands, but leaves the wind compensation
|
#if WIND_COMP_STAB == 1
|
||||||
if(GPS_enabled)
|
if(GPS_enabled){
|
||||||
wp_control = NO_NAV_MODE;
|
wp_control = NO_NAV_MODE;
|
||||||
update_nav_wp();
|
update_nav_wp();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
Log_Write_Mode(control_mode);
|
Log_Write_Mode(control_mode);
|
||||||
|
|
Loading…
Reference in New Issue