mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 01:33:56 -04:00
Copter: tuning rc-feel uses multiply instead of divide
This commit is contained in:
parent
92b56c2c89
commit
0392d2752d
@ -180,7 +180,7 @@ void Copter::tuning() {
|
|||||||
|
|
||||||
case TUNING_RC_FEEL_RP:
|
case TUNING_RC_FEEL_RP:
|
||||||
// convert from control_in to input time constant
|
// convert from control_in to input time constant
|
||||||
attitude_control->set_input_tc(1.0f / (2.f + MAX((control_in/100.0f),0.0f)));
|
attitude_control->set_input_tc(1.0f / (2.0f + MAX((control_in * 0.01f), 0.0f)));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TUNING_RATE_PITCH_KP:
|
case TUNING_RATE_PITCH_KP:
|
||||||
|
Loading…
Reference in New Issue
Block a user