Remove logic from rc.vehicle_setup that resulted in redundantly setting the MAV_TYPE to the same initial default value set within the script.

This commit is contained in:
mcsauder 2018-09-18 19:38:53 -06:00 committed by Daniel Agar
parent e3ff623df5
commit 31f3bcfc3a

View File

@ -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