mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 15:17:35 +08:00
sensors/vehicle_angular_velocity: don't remove bias twice
This commit is contained in:
@@ -257,10 +257,7 @@ void VehicleAngularVelocity::Run()
|
||||
const Vector3f val{sensor_data.x, sensor_data.y, sensor_data.z};
|
||||
|
||||
// correct for in-run bias errors
|
||||
Vector3f angular_velocity_raw = _corrections.Correct(val) - _bias;
|
||||
|
||||
// correct for in-run bias errors
|
||||
angular_velocity_raw -= _bias;
|
||||
const Vector3f angular_velocity_raw = _corrections.Correct(val) - _bias;
|
||||
|
||||
// Differentiate angular velocity (after notch filter)
|
||||
const Vector3f angular_velocity_notched{_notch_filter_velocity.apply(angular_velocity_raw)};
|
||||
|
||||
Reference in New Issue
Block a user