mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
fix variable referenced before assignment
This commit is contained in:
parent
ea42110a30
commit
80902cfe5e
@ -108,7 +108,7 @@ void ActuatorEffectivenessHelicopter::updateParams()
|
||||
_geometry.linearize_servos = (linearize_servos != 0);
|
||||
float max_servo_throw_deg = 0.f;
|
||||
param_get(_param_handles.max_servo_throw, &max_servo_throw_deg);
|
||||
const float max_servo_throw = math::radians(max_servo_throw);
|
||||
const float max_servo_throw = math::radians(max_servo_throw_deg);
|
||||
_geometry.max_servo_height = sinf(max_servo_throw);
|
||||
_geometry.inverse_max_servo_throw = 1.f / max_servo_throw;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user