Browse Source

Plane: removed old angle wrap code

mission-4.1.18
Andrew Tridgell 12 years ago
parent
commit
a165f0d138
  1. 14
      ArduPlane/navigation.pde

14
ArduPlane/navigation.pde

@ -130,20 +130,6 @@ static void calc_altitude_error() @@ -130,20 +130,6 @@ static void calc_altitude_error()
altitude_error_cm = target_altitude_cm - adjusted_altitude_cm();
}
static int32_t wrap_360_cd(int32_t error)
{
if (error > 36000) error -= 36000;
if (error < 0) error += 36000;
return error;
}
static int32_t wrap_180_cd(int32_t error)
{
if (error > 18000) error -= 36000;
if (error < -18000) error += 36000;
return error;
}
static void update_loiter()
{
float power;

Loading…
Cancel
Save