mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-04 21:23:57 +08:00
ROMFS: Remove calls which messed with params
This commit is contained in:
@@ -37,9 +37,8 @@ then
|
|||||||
param set FW_RR_I 0.1
|
param set FW_RR_I 0.1
|
||||||
param set FW_RR_IMAX 0.2
|
param set FW_RR_IMAX 0.2
|
||||||
param set FW_RR_P 0.3
|
param set FW_RR_P 0.3
|
||||||
|
param set RWTO_TKOFF 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
param set RWTO_TKOFF 1
|
|
||||||
|
|
||||||
set HIL yes
|
set HIL yes
|
||||||
set MIXER AERT
|
set MIXER AERT
|
||||||
|
|||||||
@@ -30,9 +30,3 @@ then
|
|||||||
# DJI ESCs do not support calibration and need a higher min
|
# DJI ESCs do not support calibration and need a higher min
|
||||||
param set PWM_MIN 1230
|
param set PWM_MIN 1230
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Transitional support: ensure suitable PWM min/max param values
|
|
||||||
if param compare PWM_MIN 1075
|
|
||||||
then
|
|
||||||
param set PWM_MIN 1230
|
|
||||||
fi
|
|
||||||
|
|||||||
@@ -30,9 +30,3 @@ then
|
|||||||
# DJI ESCs do not support calibration and need a higher min
|
# DJI ESCs do not support calibration and need a higher min
|
||||||
param set PWM_MIN 1230
|
param set PWM_MIN 1230
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Transitional support: ensure suitable PWM min/max param values
|
|
||||||
if param compare PWM_MIN 1075
|
|
||||||
then
|
|
||||||
param set PWM_MIN 1230
|
|
||||||
fi
|
|
||||||
|
|||||||
@@ -86,70 +86,6 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Compare existing params and save defaults
|
|
||||||
# this only needs to be in for 1-2 releases
|
|
||||||
if param compare RC_MAP_THROTTLE 0
|
|
||||||
then
|
|
||||||
# So this is a default setup,
|
|
||||||
# now lets find out if channel 3
|
|
||||||
# is calibrated
|
|
||||||
if param compare RC3_MIN 1000
|
|
||||||
then
|
|
||||||
# This is default, do nothing
|
|
||||||
else
|
|
||||||
# Set old default
|
|
||||||
param set RC_MAP_THROTTLE 3
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Compare existing params and save defaults
|
|
||||||
# this only needs to be in for 1-2 releases
|
|
||||||
if param compare RC_MAP_ROLL 0
|
|
||||||
then
|
|
||||||
# So this is a default setup,
|
|
||||||
# now lets find out if channel 1
|
|
||||||
# is calibrated
|
|
||||||
if param compare RC1_MIN 1000
|
|
||||||
then
|
|
||||||
# This is default, do nothing
|
|
||||||
else
|
|
||||||
# Set old default
|
|
||||||
param set RC_MAP_ROLL 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Compare existing params and save defaults
|
|
||||||
# this only needs to be in for 1-2 releases
|
|
||||||
if param compare RC_MAP_PITCH 0
|
|
||||||
then
|
|
||||||
# So this is a default setup,
|
|
||||||
# now lets find out if channel 2
|
|
||||||
# is calibrated
|
|
||||||
if param compare RC2_MIN 1000
|
|
||||||
then
|
|
||||||
# This is default, do nothing
|
|
||||||
else
|
|
||||||
# Set old default
|
|
||||||
param set RC_MAP_PITCH 2
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Compare existing params and save defaults
|
|
||||||
# this only needs to be in for 1-2 releases
|
|
||||||
if param compare RC_MAP_YAW 0
|
|
||||||
then
|
|
||||||
# So this is a default setup,
|
|
||||||
# now lets find out if channel 4
|
|
||||||
# is calibrated
|
|
||||||
if param compare RC4_MIN 1000
|
|
||||||
then
|
|
||||||
# This is default, do nothing
|
|
||||||
else
|
|
||||||
# Set old default
|
|
||||||
param set RC_MAP_YAW 4
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start system state indicator
|
# Start system state indicator
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user