mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
unmanned ground vehicle (UGV) controllers and Traxxas Stampede configuration (#7175)
This commit is contained in:
@@ -1042,20 +1042,29 @@ then
|
||||
fi
|
||||
|
||||
#
|
||||
# Rover setup
|
||||
# UGV setup
|
||||
#
|
||||
if [ $VEHICLE_TYPE == rover ]
|
||||
if [ $VEHICLE_TYPE == ugv ]
|
||||
then
|
||||
# 10 is MAV_TYPE_GROUND_ROVER
|
||||
set MAV_TYPE 10
|
||||
if [ $MIXER == none ]
|
||||
then
|
||||
# Set default mixer for UGV if not defined
|
||||
set MIXER stampede
|
||||
fi
|
||||
|
||||
if [ $MAV_TYPE == none ]
|
||||
then
|
||||
# Use MAV_TYPE = 10 (UGV) if not defined
|
||||
set MAV_TYPE 10
|
||||
fi
|
||||
|
||||
param set MAV_TYPE ${MAV_TYPE}
|
||||
|
||||
# Load mixer and configure outputs
|
||||
sh /etc/init.d/rc.interface
|
||||
|
||||
# Start standard rover apps
|
||||
sh /etc/init.d/rc.axialracing_ax10_apps
|
||||
|
||||
param set MAV_TYPE 10
|
||||
# Start standard UGV apps
|
||||
sh /etc/init.d/rc.gnd_apps
|
||||
fi
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user