mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
Changed constant name to UNMANNED_GROUND_VEHICLE
This commit is contained in:
committed by
Julian Oes
parent
714c90b9db
commit
21760a5856
@@ -43,8 +43,8 @@ px4_add_romfs_files(
|
||||
rcS
|
||||
rc.sensors
|
||||
rc.thermal_cal
|
||||
rc.ugv_apps
|
||||
rc.ugv_defaults
|
||||
rc.rover_apps
|
||||
rc.rover_defaults
|
||||
rc.vehicle_setup
|
||||
rc.vtol_apps
|
||||
rc.vtol_defaults
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
# @board px4_fmu-v2 exclude
|
||||
#
|
||||
|
||||
sh /etc/init.d/rc.ugv_defaults
|
||||
sh /etc/init.d/rc.rover_defaults
|
||||
|
||||
if [ $AUTOCNF = yes ]
|
||||
then
|
||||
@@ -54,10 +54,10 @@ then
|
||||
param set PWM_MIN 1000
|
||||
fi
|
||||
|
||||
# Configure this as ugv
|
||||
# Configure this as rover
|
||||
set MAV_TYPE 10
|
||||
|
||||
# Set mixer
|
||||
set MIXER ugv_generic
|
||||
set MIXER rover_generic
|
||||
|
||||
set PWM_MAIN_REV2 1
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# @board px4_fmu-v2 exclude
|
||||
#
|
||||
|
||||
sh /etc/init.d/rc.ugv_defaults
|
||||
sh /etc/init.d/rc.rover_defaults
|
||||
|
||||
#
|
||||
# This section can be enabled once tuning parameters for this particular
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# @board px4_fmu-v2 exclude
|
||||
#
|
||||
|
||||
sh /etc/init.d/rc.ugv_defaults
|
||||
sh /etc/init.d/rc.rover_defaults
|
||||
|
||||
if [ $AUTOCNF = yes ]
|
||||
then
|
||||
@@ -56,7 +56,7 @@ then
|
||||
param set PWM_MIN 1000
|
||||
fi
|
||||
|
||||
# Configure this as ugv
|
||||
# Configure this as rover
|
||||
set MAV_TYPE 10
|
||||
|
||||
# Set mixer
|
||||
|
||||
@@ -23,4 +23,4 @@ gnd_pos_control start
|
||||
#
|
||||
# Start Land Detector.
|
||||
#
|
||||
land_detector start ugv
|
||||
land_detector start rover
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
# NOTE: Script variables are declared/initialized/unset in the rcS script.
|
||||
#
|
||||
|
||||
set VEHICLE_TYPE ugv
|
||||
set VEHICLE_TYPE rover
|
||||
|
||||
if [ $AUTOCNF = yes ]
|
||||
then
|
||||
@@ -87,12 +87,12 @@ fi
|
||||
#
|
||||
# UGV setup.
|
||||
#
|
||||
if [ $VEHICLE_TYPE = ugv ]
|
||||
if [ $VEHICLE_TYPE = rover ]
|
||||
then
|
||||
if [ $MIXER = none ]
|
||||
then
|
||||
# Set default mixer for UGV if not defined.
|
||||
set MIXER ugv_generic
|
||||
set MIXER rover_generic
|
||||
fi
|
||||
|
||||
if [ $MAV_TYPE = none ]
|
||||
@@ -108,7 +108,7 @@ then
|
||||
sh /etc/init.d/rc.interface
|
||||
|
||||
# Start standard UGV apps.
|
||||
sh /etc/init.d/rc.ugv_apps
|
||||
sh /etc/init.d/rc.rover_apps
|
||||
fi
|
||||
|
||||
#
|
||||
|
||||
@@ -421,7 +421,7 @@ else
|
||||
#
|
||||
# Configure vehicle type specific parameters.
|
||||
# Note: rc.vehicle_setup is the entry point for rc.interface,
|
||||
# rc.fw_apps, rc.mc_apps, rc.ugv_apps, and rc.vtol_apps.
|
||||
# rc.fw_apps, rc.mc_apps, rc.rover_apps, and rc.vtol_apps.
|
||||
#
|
||||
sh /etc/init.d/rc.vehicle_setup
|
||||
|
||||
|
||||
Reference in New Issue
Block a user