Last updated
Last updated
PX4 OEM manufacturers can perform an IMU factory calibration in order to store persistent values for the accelerometer, gyroscope and magnetometer biases into persistent storage (usually EEPROM). This ensures that end users can always reset vehicle configurations and tuning to a safe state for flying.
This procedure will write the following parameters to /fs/mtd_caldata
: , , . This data will then be used when the parameters are set (or reset) to their default values.
:::warning This feature relies on the FMU having a dedicated EEPROM chip or an accompanying IMU PCBA that has sufficient space for the data. PX4 will store the data to /fs/mtd_caldata
, creating the file if necessary. :::
:::note These values cannot be stored in the because they vary from device to device (the frame configuration defines the set of parameters that are applicable across all vehicles of the same type, such as the enabled sensors, and PID tuning). :::
Set the parameter to 1.
Perform all IMU calibrations: , and .
Reboot the vehicle. This will write all CAL_ACC*
, CAL_GYRO*
and CAL_MAG*
parameters into /fs/mtd_caldata
.
Set the parameter SYS_FAC_CAL_MODE
back to 0 (default).
Subsequent user calibrations will then take effect as usual (factory calibration data is only used for the parameter default values).