diff --git a/flight/OpenPilot/UAVObjects/ahrscalibration.c b/flight/OpenPilot/UAVObjects/ahrscalibration.c index 8e668689b..5ca39cf38 100644 --- a/flight/OpenPilot/UAVObjects/ahrscalibration.c +++ b/flight/OpenPilot/UAVObjects/ahrscalibration.c @@ -102,9 +102,9 @@ static void setDefaults(UAVObjHandle obj, uint16_t instId) data.mag_bias[0] = 0; data.mag_bias[1] = 0; data.mag_bias[2] = 0; - data.mag_var[0] = 0; - data.mag_var[1] = 0; - data.mag_var[2] = 0; + data.mag_var[0] = 5e-05; + data.mag_var[1] = 5e-05; + data.mag_var[2] = 5e-05; UAVObjSetInstanceData(obj, instId, &data); diff --git a/ground/src/plugins/uavobjects/ahrscalibration.cpp b/ground/src/plugins/uavobjects/ahrscalibration.cpp index 7c7737810..522906d0c 100644 --- a/ground/src/plugins/uavobjects/ahrscalibration.cpp +++ b/ground/src/plugins/uavobjects/ahrscalibration.cpp @@ -143,9 +143,9 @@ void AHRSCalibration::setDefaultFieldValues() data.mag_bias[0] = 0; data.mag_bias[1] = 0; data.mag_bias[2] = 0; - data.mag_var[0] = 0; - data.mag_var[1] = 0; - data.mag_var[2] = 0; + data.mag_var[0] = 5e-05; + data.mag_var[1] = 5e-05; + data.mag_var[2] = 5e-05; } diff --git a/ground/src/shared/uavobjectdefinition/ahrscalibration.xml b/ground/src/shared/uavobjectdefinition/ahrscalibration.xml index a743663ce..585524d1a 100644 --- a/ground/src/shared/uavobjectdefinition/ahrscalibration.xml +++ b/ground/src/shared/uavobjectdefinition/ahrscalibration.xml @@ -9,7 +9,7 @@ - +