Browse Source

ACM : climb rate option using Bill P's equation

mission-4.1.18
Jason Short 12 years ago
parent
commit
fb2180ddcd
  1. 4
      ArduCopter/navigation.pde

4
ArduCopter/navigation.pde

@ -524,7 +524,7 @@ static void reset_desired_speed() @@ -524,7 +524,7 @@ static void reset_desired_speed()
#define DECEL_CLIMB_RATE 30
static int16_t get_desired_climb_rate()
static int16_t get_desired_climb_rate_new()
{
static int16_t climb_old = 0;
@ -555,7 +555,7 @@ static int16_t get_desired_climb_rate() @@ -555,7 +555,7 @@ static int16_t get_desired_climb_rate()
return climb;
}
static int16_t get_desired_climb_rate_old()
static int16_t get_desired_climb_rate()
{
if(alt_change_flag == ASCENDING) {
return constrain(altitude_error / 4, 100, 180); // 180cm /s up, minimum is 100cm/s

Loading…
Cancel
Save