Skip to content
Snippets Groups Projects
Commit 0ecf6436 authored by mcsauder's avatar mcsauder Committed by Daniel Agar
Browse files

Modify 500001_axialracing_ax10 to utilize rc.ugv_defaults to allow deprecating...

Modify 500001_axialracing_ax10 to utilize rc.ugv_defaults to allow deprecating rc.axialracing_ax10_apps and rc.axialracing_ax10_defaults and update CMakeLists.txt.
parent 4863b366
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,22 @@
# @board px4fmu-v2 exclude
#
sh /etc/init.d/rc.axialracing_ax10_defaults
sh /etc/init.d/rc.ugv_defaults
#choose a mixer, for rover control we need a plain passthrough to the servos
set MIXER IO_pass
#
# This section can be enabled once tuning parameters for this particular
# rover model are known. It allows to configure default gains via the GUI.
#
if [ $AUTOCNF == yes ]
then
# PWM default value for "disarmed" mode.
# This centers the steering and throttle, which means
# no motion for a rover.
param set PWM_DISARMED 1500
# PWM range.
param set PWM_MIN 1200
param set PWM_MAX 1800
fi
set MIXER IO_pass
\ No newline at end of file
......@@ -100,8 +100,6 @@ px4_add_romfs_files(
50000_generic_ground_vehicle
50001_axialracing_ax10
50002_traxxas_stampede_2wd
rc.axialracing_ax10_apps
rc.axialracing_ax10_defaults
rc.fw_apps
rc.fw_defaults
rc.interface
......
#!nsh
#
# Standard apps for rovers:
# Attitude/Position estimator and rover steering control.
#
# NOTE: Script variables are declared/initialized/unset in the rcS script.
#
#
# Start the Attitude estimator.
#
ekf2 start
# disabled the start of steering control app due to use of offboard mode only
# rover_steering_control start.
#!nsh
#
# Standard defaults for rovers.
#
# NOTE: Script variables are declared/initialized/unset in the rcS script.
#
set VEHICLE_TYPE ugv
#
# This section can be enabled once tuning parameters for this particular
# rover model are known. It allows to configure default gains via the GUI.
#
if [ $AUTOCNF == yes ]
then
# PWM default value for "disarmed" mode.
# This centers the steering and throttle, which means
# no motion for a rover.
param set PWM_DISARMED 1500
# PWM range.
param set PWM_MIN 1200
param set PWM_MAX 1800
fi
#
# PWM Hz - 50 Hz is the normal rate in RC cars, higher rates
# may damage analog servos.
#
set PWM_RATE 50
#
# Enable servo output on pins 3 and 4 (steering and thrust) but also
# include 1+2 as they form one output group and need to be set together.
#
set PWM_OUT 1234
......@@ -313,9 +313,9 @@ then
fi
#
# Rover setup
# UGV/Rover setup
#
if [ $VEHICLE_TYPE == rover ]
if [ $VEHICLE_TYPE == ugv ]
then
# 10 is MAV_TYPE_GROUND_ROVER
set MAV_TYPE 10
......@@ -324,7 +324,7 @@ then
sh /etc/init.d/rc.interface
# Start standard rover apps
sh /etc/init.d/rc.axialracing_ax10_apps
sh /etc/init.d/rc.ugv_apps
param set MAV_TYPE 10
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment