mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
ROMFS: enable auto start of thermal calibration
This commit is contained in:
committed by
Lorenz Meier
parent
8aa91512e9
commit
8001db257c
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user