Browse Source

removed need to send increment flag to update commands

constrained climb_rate value
master
Jason Short 13 years ago
parent
commit
82adf1df6b
  1. 5
      ArduCopter/ArduCopter.pde

5
ArduCopter/ArduCopter.pde

@ -753,7 +753,7 @@ static void medium_loop() @@ -753,7 +753,7 @@ static void medium_loop()
// --------------------
if(control_mode == AUTO){
if(home_is_set == true && g.command_total > 1){
update_commands(true);
update_commands();
}
}
@ -1374,6 +1374,9 @@ static void update_altitude() @@ -1374,6 +1374,9 @@ static void update_altitude()
current_loc.alt = baro_alt + home.alt;
climb_rate = baro_rate;
}
// manage bad data
climb_rate = constrain(climb_rate, -300, 300);
}
static void

Loading…
Cancel
Save