mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 10:43:34 +08:00
Remove Dcmf
This commit is contained in:
@@ -206,8 +206,7 @@ void FixedwingWindEstimator::Run()
|
|||||||
if (_calibrated_airspeed > _stall_airspeed) {
|
if (_calibrated_airspeed > _stall_airspeed) {
|
||||||
matrix::Vector3f air_velocity_body = compute_wind_estimate();
|
matrix::Vector3f air_velocity_body = compute_wind_estimate();
|
||||||
|
|
||||||
Dcmf R_ib(_attitude);
|
matrix::Vector3f air_velocity_local = _attitude.rotateVector(air_velocity_body);
|
||||||
matrix::Vector3f air_velocity_local = R_ib * air_velocity_body;
|
|
||||||
|
|
||||||
// compute wind from wind triangle
|
// compute wind from wind triangle
|
||||||
matrix::Vector3f wind = _local_velocity - air_velocity_local;
|
matrix::Vector3f wind = _local_velocity - air_velocity_local;
|
||||||
|
|||||||
Reference in New Issue
Block a user