Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

temperature_compensation module #12601

Merged
merged 1 commit into from
Jan 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions ROMFS/px4fmu_common/init.d/rc.thermal_cal
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,37 @@
# NOTE: Script variables are declared/initialized/unset in the rcS script.
#

set TEMP_CALIB_ARGS ""
set TEMP_COMP_START ""

if param compare TC_A_ENABLE 1
then
set TEMP_COMP_START "true"
fi

if param compare TC_B_ENABLE 1
then
set TEMP_COMP_START "true"
fi

if param compare TC_G_ENABLE 1
then
set TEMP_COMP_START "true"
fi

if [ "x$TEMP_COMP_START" != "x" ]
then
temperature_compensation start
fi

unset TEMP_COMP_START


#
# Determine if a thermal calibration should be started.
#

set TEMP_CALIB_ARGS ""

if param compare SYS_CAL_ACCEL 1
then
set TEMP_CALIB_ARGS "${TEMP_CALIB_ARGS} -a"
Expand All @@ -34,7 +59,7 @@ fi
#
if [ "x$TEMP_CALIB_ARGS" != "x" ]
then
send_event temperature_calibration ${TEMP_CALIB_ARGS}
temperature_compensation calibrate ${TEMP_CALIB_ARGS}
fi

unset TEMP_CALIB_ARGS
unset TEMP_CALIB_ARGS
1 change: 1 addition & 0 deletions boards/aerotenna/ocpoc/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ px4_add_board(
rc_update
rover_pos_control
sensors
temperature_compensation
sih
#simulator
vmount
Expand Down
1 change: 1 addition & 0 deletions boards/airmind/mindpx-v2/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ px4_add_board(
rover_pos_control
sensors
sih
temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/atlflight/eagle/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ px4_add_board(
rover_pos_control
sensors
#sih
temperature_compensation
simulator
vmount
vtol_att_control
Expand Down
1 change: 1 addition & 0 deletions boards/atlflight/eagle/qurt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ px4_add_board(
rc_update
rover_pos_control
sensors
temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/atlflight/excelsior/qurt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ px4_add_board(
rc_update
rover_pos_control
sensors
temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/auav/x21/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ px4_add_board(
rover_pos_control
sensors
sih
temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/av/x-v1/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ px4_add_board(
rover_pos_control
sensors
sih
temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/beaglebone/blue/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ px4_add_board(
sensors
sih
#simulator
temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/bitcraze/crazyflie/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ px4_add_board(
navigator
rc_update
sensors
#temperature_compensation
SYSTEMCMDS
bl_update
config
Expand Down
1 change: 1 addition & 0 deletions boards/emlid/navio2/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ px4_add_board(
sensors
sih
#simulator
temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/holybro/durandal-v1/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ px4_add_board(
rover_pos_control
sensors
sih
temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/holybro/durandal-v1/stackcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ px4_add_board(
#rover_pos_control
sensors
#sih
temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/holybro/kakutef7/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ px4_add_board(
navigator
rc_update
sensors
#temperature_compensation
SYSTEMCMDS
bl_update
config
Expand Down
1 change: 1 addition & 0 deletions boards/intel/aerofc-v1/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ px4_add_board(
#rover_pos_control
sensors
#sih
#temperature_compensation
vmount
#vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/intel/aerofc-v1/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ px4_add_board(
#rover_pos_control
sensors
#sih
#temperature_compensation
vmount
#vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/modalai/fc-v1/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ px4_add_board(
rover_pos_control
sensors
sih
temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/mro/ctrl-zero-f7/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ px4_add_board(
rover_pos_control
sensors
sih
temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/nxp/fmuk66-v3/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ px4_add_board(
rover_pos_control
sensors
sih
temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/omnibus/f4sd/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ px4_add_board(
#rover_pos_control
sensors
#sih
#temperature_compensation
#vmount
#vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v2/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ px4_add_board(
#rover_pos_control
sensors
#sih
#temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v2/fixedwing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ px4_add_board(
navigator
rc_update
sensors
temperature_compensation
vmount
SYSTEMCMDS
#bl_update
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v2/lpe.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ px4_add_board(
battery_status
rc_update
sensors
temperature_compensation
vmount
#vtol_att_control
#airspeed_selector
Expand Down
2 changes: 2 additions & 0 deletions boards/px4/fmu-v2/multicopter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ px4_add_board(
navigator
rc_update
sensors
sih
#temperature_compensation
vmount
SYSTEMCMDS
#bl_update
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v2/rover.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ px4_add_board(
battery_status
rc_update
sensors
temperature_compensation
vmount

SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v2/test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ px4_add_board(
#rover_pos_control
sensors
#sih
#temperature_compensation
#vmount
#vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v3/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ px4_add_board(
rover_pos_control
sensors
sih
temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v3/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ px4_add_board(
rover_pos_control
sensors
sih
temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v3/stackcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ px4_add_board(
rc_update
sensors
sih
temperature_compensation
vmount
vtol_att_control
airspeed_selector
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v4/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ px4_add_board(
rover_pos_control
sensors
sih
temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v4/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ px4_add_board(
rover_pos_control
sensors
sih
temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v4/stackcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ px4_add_board(
rover_pos_control
sensors
sih
temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v4pro/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ px4_add_board(
rover_pos_control
sensors
sih
temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v4pro/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ px4_add_board(
rover_pos_control
sensors
sih
temperature_compensation
vmount
vtol_att_control
SYSTEMCMDS
Expand Down
Loading