mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 01:23:34 +08:00
ardrone interface: Remove unused variable
This commit is contained in:
@@ -382,8 +382,6 @@ void ardrone_mixing_and_output(int ardrone_write, const struct actuator_controls
|
|||||||
float output_band = 0.0f;
|
float output_band = 0.0f;
|
||||||
const float startpoint_full_control = 0.25f; /**< start full control at 25% thrust */
|
const float startpoint_full_control = 0.25f; /**< start full control at 25% thrust */
|
||||||
|
|
||||||
static bool initialized = false;
|
|
||||||
|
|
||||||
/* linearly scale the control inputs from 0 to startpoint_full_control */
|
/* linearly scale the control inputs from 0 to startpoint_full_control */
|
||||||
if (motor_thrust < startpoint_full_control) {
|
if (motor_thrust < startpoint_full_control) {
|
||||||
output_band = motor_thrust/startpoint_full_control; // linear from 0 to 1
|
output_band = motor_thrust/startpoint_full_control; // linear from 0 to 1
|
||||||
|
|||||||
Reference in New Issue
Block a user