1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-118 AHRS: Missed the auto generated files for the default values. Also no idea why last patch changed navigationsettings - either make uavobjects does differently on different platforms or someone forgot to run make uavobjects.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1372 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
peabody124 2010-08-22 17:02:12 +00:00 committed by peabody124
parent 0862d64b8c
commit 60332efec0
2 changed files with 20 additions and 20 deletions

View File

@ -73,31 +73,31 @@ static void setDefaults(UAVObjHandle obj, uint16_t instId)
// Initialize object fields to their default values
UAVObjGetInstanceData(obj, instId, &data);
memset(&data, 0, sizeof(AHRSCalibrationData));
data.measure_var = 1;
data.measure_var = 0;
data.accel_bias[0] = -2048;
data.accel_bias[1] = -2048;
data.accel_bias[2] = -2048;
data.accel_scale[0] = 0.012;
data.accel_scale[1] = 0.012;
data.accel_scale[2] = 0.012;
data.accel_var[0] = 1;
data.accel_var[1] = 1;
data.accel_var[2] = 1;
data.accel_var[0] = 5e-05;
data.accel_var[1] = 5e-05;
data.accel_var[2] = 5e-05;
data.gyro_bias[0] = -1675;
data.gyro_bias[1] = -1675;
data.gyro_bias[2] = -1675;
data.gyro_scale[0] = 0.007;
data.gyro_scale[1] = 0.007;
data.gyro_scale[2] = 0.007;
data.gyro_var[0] = 1;
data.gyro_var[1] = 1;
data.gyro_var[2] = 1;
data.gyro_var[0] = 0.0001;
data.gyro_var[1] = 0.0001;
data.gyro_var[2] = 0.0001;
data.mag_bias[0] = 0;
data.mag_bias[1] = 0;
data.mag_bias[2] = 0;
data.mag_var[0] = 1;
data.mag_var[1] = 1;
data.mag_var[2] = 1;
data.mag_var[0] = 0;
data.mag_var[1] = 0;
data.mag_var[2] = 0;
UAVObjSetInstanceData(obj, instId, &data);

View File

@ -121,31 +121,31 @@ UAVObject::Metadata AHRSCalibration::getDefaultMetadata()
*/
void AHRSCalibration::setDefaultFieldValues()
{
data.measure_var = 1;
data.measure_var = 0;
data.accel_bias[0] = -2048;
data.accel_bias[1] = -2048;
data.accel_bias[2] = -2048;
data.accel_scale[0] = 0.012;
data.accel_scale[1] = 0.012;
data.accel_scale[2] = 0.012;
data.accel_var[0] = 1;
data.accel_var[1] = 1;
data.accel_var[2] = 1;
data.accel_var[0] = 5e-05;
data.accel_var[1] = 5e-05;
data.accel_var[2] = 5e-05;
data.gyro_bias[0] = -1675;
data.gyro_bias[1] = -1675;
data.gyro_bias[2] = -1675;
data.gyro_scale[0] = 0.007;
data.gyro_scale[1] = 0.007;
data.gyro_scale[2] = 0.007;
data.gyro_var[0] = 1;
data.gyro_var[1] = 1;
data.gyro_var[2] = 1;
data.gyro_var[0] = 0.0001;
data.gyro_var[1] = 0.0001;
data.gyro_var[2] = 0.0001;
data.mag_bias[0] = 0;
data.mag_bias[1] = 0;
data.mag_bias[2] = 0;
data.mag_var[0] = 1;
data.mag_var[1] = 1;
data.mag_var[2] = 1;
data.mag_var[0] = 0;
data.mag_var[1] = 0;
data.mag_var[2] = 0;
}