diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 4394ddc420..e001681af4 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -1058,6 +1058,26 @@ then fi + # + # Check if we should start a thermal calibration + # TODO move further up and don't start unnecessary services if we are calibrating + # + if param compare SYS_CAL_GYRO 1 + then + send_event start_temp_gyro_cal + param set SYS_CAL_GYRO 0 + fi + if param compare SYS_CAL_ACCEL 1 + then + send_event start_temp_accel_cal + param set SYS_CAL_ACCEL 0 + fi + if param compare SYS_CAL_BARO 1 + then + send_event start_temp_baro_cal + param set SYS_CAL_BARO 0 + fi + # End of autostart fi