mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 04:13:33 +08:00
WeatherVane: only update with last row of rotation matrix
This commit is contained in:
@@ -555,7 +555,7 @@ MulticopterPositionControl::Run()
|
||||
}
|
||||
}
|
||||
|
||||
_wv_controller->update(matrix::Quatf(_att_sp.q_d), _states.yaw);
|
||||
_wv_controller->update(Quatf(_att_sp.q_d).dcm_z(), _states.yaw);
|
||||
}
|
||||
|
||||
// an update is necessary here because otherwise the takeoff state doesn't get skiped with non-altitude-controlled modes
|
||||
|
||||
Reference in New Issue
Block a user