diff --git a/ArduSub/control_acro.cpp b/ArduSub/control_acro.cpp index 19e7f505b4..2fd3d17407 100644 --- a/ArduSub/control_acro.cpp +++ b/ArduSub/control_acro.cpp @@ -24,7 +24,6 @@ bool Sub::acro_init(bool ignore_checks) void Sub::acro_run() { float target_roll, target_pitch, target_yaw; - float pilot_throttle_scaled; // if not armed set throttle to zero and exit immediately if (!motors.armed() || !motors.get_interlock()) { diff --git a/ArduSub/control_stabilize.cpp b/ArduSub/control_stabilize.cpp index ed0adf4464..195e89083c 100644 --- a/ArduSub/control_stabilize.cpp +++ b/ArduSub/control_stabilize.cpp @@ -24,7 +24,6 @@ void Sub::stabilize_run() uint32_t tnow = AP_HAL::millis(); float target_roll, target_pitch; float target_yaw_rate; - float pilot_throttle_scaled; // if not armed set throttle to zero and exit immediately if (!motors.armed() || !motors.get_interlock()) {