mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
AP_AHRS: params always use set method
This commit is contained in:
parent
cb6e6c82e5
commit
d423f483a6
@ -587,7 +587,7 @@ AP_AHRS_DCM::drift_correction_yaw(void)
|
||||
|
||||
// sanity check _kp_yaw
|
||||
if (_kp_yaw < AP_AHRS_YAW_P_MIN) {
|
||||
_kp_yaw = AP_AHRS_YAW_P_MIN;
|
||||
_kp_yaw.set(AP_AHRS_YAW_P_MIN);
|
||||
}
|
||||
|
||||
// update the proportional control to drag the
|
||||
@ -927,7 +927,7 @@ AP_AHRS_DCM::drift_correction(float deltat)
|
||||
|
||||
// sanity check _kp value
|
||||
if (_kp < AP_AHRS_RP_P_MIN) {
|
||||
_kp = AP_AHRS_RP_P_MIN;
|
||||
_kp.set(AP_AHRS_RP_P_MIN);
|
||||
}
|
||||
|
||||
// we now want to calculate _omega_P and _omega_I. The
|
||||
|
Loading…
Reference in New Issue
Block a user