From 8001db257c4988d972507827e67e2328b343dbab Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Thu, 2 Feb 2017 20:34:15 +1100 Subject: [PATCH] ROMFS: enable auto start of thermal calibration --- ROMFS/px4fmu_common/init.d/rcS | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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