Sub: Fix compile error in control_althold

This commit is contained in:
Rustom Jehangir 2016-03-17 17:55:37 -07:00 committed by Andrew Tridgell
parent 85f972ec65
commit 5ee68aee42
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ void Sub::althold_run()
float target_climb_rate = get_pilot_desired_climb_rate(channel_throttle->control_in);
target_climb_rate = constrain_float(target_climb_rate, -g.pilot_velocity_z_max, g.pilot_velocity_z_max);
bool takeoff_triggered = (ap.land_complete && (channel_throttle->control_in > get_takeoff_trigger_throttle()));
//bool takeoff_triggered = (ap.land_complete && (channel_throttle->control_in > get_takeoff_trigger_throttle()));
// // Alt Hold State Machine Determination
if(!ap.auto_armed) {