mirror of https://github.com/ArduPilot/ardupilot
AC_AttitudeControl: Write_Rate() should be thread-safe
This commit is contained in:
parent
829422ecfb
commit
70067ea7ae
|
@ -30,7 +30,7 @@ void AC_AttitudeControl::Write_ANG() const
|
||||||
// Write a rate packet
|
// Write a rate packet
|
||||||
void AC_AttitudeControl::Write_Rate(const AC_PosControl &pos_control) const
|
void AC_AttitudeControl::Write_Rate(const AC_PosControl &pos_control) const
|
||||||
{
|
{
|
||||||
const Vector3f &rate_targets = rate_bf_targets();
|
const Vector3f rate_targets = rate_bf_targets();
|
||||||
const Vector3f &accel_target = pos_control.get_accel_target_cmss();
|
const Vector3f &accel_target = pos_control.get_accel_target_cmss();
|
||||||
const Vector3f &gyro_rate = _rate_gyro;
|
const Vector3f &gyro_rate = _rate_gyro;
|
||||||
const struct log_Rate pkt_rate{
|
const struct log_Rate pkt_rate{
|
||||||
|
|
Loading…
Reference in New Issue