mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Sub: Fix unused variables in acro and stabilize
This commit is contained in:
parent
45de3b1163
commit
fdf9e5fde0
@ -24,7 +24,6 @@ bool Sub::acro_init(bool ignore_checks)
|
|||||||
void Sub::acro_run()
|
void Sub::acro_run()
|
||||||
{
|
{
|
||||||
float target_roll, target_pitch, target_yaw;
|
float target_roll, target_pitch, target_yaw;
|
||||||
float pilot_throttle_scaled;
|
|
||||||
|
|
||||||
// if not armed set throttle to zero and exit immediately
|
// if not armed set throttle to zero and exit immediately
|
||||||
if (!motors.armed() || !motors.get_interlock()) {
|
if (!motors.armed() || !motors.get_interlock()) {
|
||||||
|
@ -24,7 +24,6 @@ void Sub::stabilize_run()
|
|||||||
uint32_t tnow = AP_HAL::millis();
|
uint32_t tnow = AP_HAL::millis();
|
||||||
float target_roll, target_pitch;
|
float target_roll, target_pitch;
|
||||||
float target_yaw_rate;
|
float target_yaw_rate;
|
||||||
float pilot_throttle_scaled;
|
|
||||||
|
|
||||||
// if not armed set throttle to zero and exit immediately
|
// if not armed set throttle to zero and exit immediately
|
||||||
if (!motors.armed() || !motors.get_interlock()) {
|
if (!motors.armed() || !motors.get_interlock()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user