Browse Source

small change to RTL to prevent negative effects from flying backwards.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2981 f9c3cf11-9bcb-44bc-f272-b75c42450872
mission-4.1.18
jasonshort 14 years ago
parent
commit
c637bf0947
  1. 1
      ArduCopterMega/navigation.pde

1
ArduCopterMega/navigation.pde

@ -146,6 +146,7 @@ static void calc_rate_nav(int speed) @@ -146,6 +146,7 @@ static void calc_rate_nav(int speed)
// calc the cos of the error to tell how fast we are moving towards the target in cm
int groundspeed = (float)g_gps->ground_speed * cos(radians((float)target_error/100));
groundspeed = max(groundspeed, 0);
// Reduce speed on RTL
if(control_mode == RTL){

Loading…
Cancel
Save