From 2fd89ea904f5dad3fb86f235fb69e6c24a712911 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 15 Feb 2016 12:40:57 +0100 Subject: [PATCH] ROMFS: Remove calls which messed with params --- .../init.d/1000_rc_fw_easystar.hil | 3 +- ROMFS/px4fmu_common/init.d/4010_dji_f330 | 6 -- ROMFS/px4fmu_common/init.d/4011_dji_f450 | 6 -- ROMFS/px4fmu_common/init.d/rcS | 64 ------------------- 4 files changed, 1 insertion(+), 78 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/1000_rc_fw_easystar.hil b/ROMFS/px4fmu_common/init.d/1000_rc_fw_easystar.hil index e37fc4389a..d1ad546077 100644 --- a/ROMFS/px4fmu_common/init.d/1000_rc_fw_easystar.hil +++ b/ROMFS/px4fmu_common/init.d/1000_rc_fw_easystar.hil @@ -37,9 +37,8 @@ then param set FW_RR_I 0.1 param set FW_RR_IMAX 0.2 param set FW_RR_P 0.3 + param set RWTO_TKOFF 1 fi -param set RWTO_TKOFF 1 - set HIL yes set MIXER AERT diff --git a/ROMFS/px4fmu_common/init.d/4010_dji_f330 b/ROMFS/px4fmu_common/init.d/4010_dji_f330 index aea5292a24..35fe848837 100644 --- a/ROMFS/px4fmu_common/init.d/4010_dji_f330 +++ b/ROMFS/px4fmu_common/init.d/4010_dji_f330 @@ -30,9 +30,3 @@ then # DJI ESCs do not support calibration and need a higher min param set PWM_MIN 1230 fi - -# Transitional support: ensure suitable PWM min/max param values -if param compare PWM_MIN 1075 -then - param set PWM_MIN 1230 -fi diff --git a/ROMFS/px4fmu_common/init.d/4011_dji_f450 b/ROMFS/px4fmu_common/init.d/4011_dji_f450 index 955b9d905c..d7866a070c 100644 --- a/ROMFS/px4fmu_common/init.d/4011_dji_f450 +++ b/ROMFS/px4fmu_common/init.d/4011_dji_f450 @@ -30,9 +30,3 @@ then # DJI ESCs do not support calibration and need a higher min param set PWM_MIN 1230 fi - -# Transitional support: ensure suitable PWM min/max param values -if param compare PWM_MIN 1075 -then - param set PWM_MIN 1230 -fi diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 4c30a07364..3df03d7aa2 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -86,70 +86,6 @@ then 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 #