From fdf9e5fde08934d856259a95dbd6f30a499c8123 Mon Sep 17 00:00:00 2001 From: Jacob Walser Date: Sun, 4 Dec 2016 11:50:42 -0500 Subject: [PATCH] Sub: Fix unused variables in acro and stabilize --- ArduSub/control_acro.cpp | 1 - ArduSub/control_stabilize.cpp | 1 - 2 files changed, 2 deletions(-) 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()) {