mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_AHRS: make DCM use milligauss
This commit is contained in:
parent
b5b6d767bd
commit
4b948f5bb1
@ -276,7 +276,7 @@ AP_AHRS_DCM::normalize(void)
|
||||
float
|
||||
AP_AHRS_DCM::yaw_error_compass(void)
|
||||
{
|
||||
const Vector3f &mag = _compass->get_field();
|
||||
const Vector3f &mag = _compass->get_field_milligauss();
|
||||
// get the mag vector in the earth frame
|
||||
Vector2f rb = _dcm_matrix.mulXY(mag);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user