From c20c04ed24790cec602a87e13f6e89a5d7615060 Mon Sep 17 00:00:00 2001 From: Jason Short Date: Tue, 3 Jul 2012 17:16:14 -0700 Subject: [PATCH] removed GPS ground speed calc - was causing some funny business during the transition. --- ArduCopter/navigation.pde | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ArduCopter/navigation.pde b/ArduCopter/navigation.pde index 8cfddc4e83..d31a65669a 100644 --- a/ArduCopter/navigation.pde +++ b/ArduCopter/navigation.pde @@ -50,11 +50,12 @@ static void calc_XY_velocity(){ last_longitude = g_gps->longitude; last_latitude = g_gps->latitude; - if(g_gps->ground_speed > 150){ + /*if(g_gps->ground_speed > 150){ float temp = radians((float)g_gps->ground_course/100.0); x_actual_speed = (float)g_gps->ground_speed * sin(temp); y_actual_speed = (float)g_gps->ground_speed * cos(temp); - } + }*/ + #if INERTIAL_NAV == ENABLED // inertial_nav