From f240888b49244a896b51940e1501ca42d3891dfc Mon Sep 17 00:00:00 2001 From: Jason Short Date: Mon, 9 Jan 2012 16:54:47 -0800 Subject: [PATCH] added #if to wind compensation code --- ArduCopter/system.pde | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ArduCopter/system.pde b/ArduCopter/system.pde index 6c610d7137..2c4bc8f626 100644 --- a/ArduCopter/system.pde +++ b/ArduCopter/system.pde @@ -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);