From 31f3bcfc3a0bca8a3ef34d035e711253eddab8e0 Mon Sep 17 00:00:00 2001 From: mcsauder Date: Tue, 18 Sep 2018 19:38:53 -0600 Subject: [PATCH] Remove logic from rc.vehicle_setup that resulted in redundantly setting the MAV_TYPE to the same initial default value set within the script. --- ROMFS/px4fmu_common/init.d/rc.vehicle_setup | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rc.vehicle_setup b/ROMFS/px4fmu_common/init.d/rc.vehicle_setup index 4ca1e26f47..74757bd695 100644 --- a/ROMFS/px4fmu_common/init.d/rc.vehicle_setup +++ b/ROMFS/px4fmu_common/init.d/rc.vehicle_setup @@ -48,18 +48,6 @@ then set MAV_TYPE 2 # Use mixer to detect vehicle type - if [ $MIXER == quad_x -o $MIXER == quad_+ ] - then - set MAV_TYPE 2 - fi - if [ $MIXER == quad_w -o $MIXER == quad_dc ] - then - set MAV_TYPE 2 - fi - if [ $MIXER == quad_h ] - then - set MAV_TYPE 2 - fi if [ $MIXER == coax ] then set MAV_TYPE 3