Browse Source

added #if to wind compensation code

master
Jason Short 13 years ago
parent
commit
cf92631d33
  1. 7
      ArduCopter/system.pde

7
ArduCopter/system.pde

@ -579,11 +579,12 @@ static void set_mode(byte mode) @@ -579,11 +579,12 @@ static void set_mode(byte mode)
// removes the navigation from roll and pitch commands, but leaves the wind compensation
reset_nav();
// removes the navigation from roll and pitch commands, but leaves the wind compensation
if(GPS_enabled)
#if WIND_COMP_STAB == 1
if(GPS_enabled){
wp_control = NO_NAV_MODE;
update_nav_wp();
}
#endif
}
Log_Write_Mode(control_mode);

Loading…
Cancel
Save