mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
update variable name
This commit is contained in:
parent
a70c5e7e35
commit
6e1e2f1a2c
@ -66,7 +66,7 @@ ActuatorEffectivenessHelicopter::ActuatorEffectivenessHelicopter(ModuleParams *p
|
||||
_param_handles.yaw_ccw = param_find("CA_HELI_YAW_CCW");
|
||||
_param_handles.spoolup_time = param_find("COM_SPOOLUP_TIME");
|
||||
_param_handles.linearize_servos = param_find("CA_LIN_SERVO");
|
||||
_param_handles.max_sevo_throw = param_find("CA_MAX_SVO_THROW");
|
||||
_param_handles.max_servo_throw = param_find("CA_MAX_SVO_THROW");
|
||||
|
||||
updateParams();
|
||||
}
|
||||
@ -200,7 +200,7 @@ float ActuatorEffectivenessHelicopter::getLinearServoOutput(float input) const
|
||||
input = math::constrain(input, -1.0f, 1.0f);
|
||||
|
||||
//servo output is calculated by normalizing input to arm rotation of CA_MAX_SVO_THROW degrees as full input for a linear throw
|
||||
float svo_height = _geometry.max_sevo_height * input;
|
||||
float svo_height = _geometry.max_servo_height * input;
|
||||
|
||||
if (!PX4_ISFINITE(svo_height)) {
|
||||
svo_height = 0.0f;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user