Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrote gnd_pos_control and removed gnd_att_control #12239

Merged
merged 17 commits into from
Jul 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ROMFS/px4fmu_common/init.d-posix/1060_rover
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ then
param set GND_THR_IDLE 0
param set GND_THR_MAX 0.5
param set GND_THR_MIN 0
param set GND_WR_D 1.2
param set GND_WR_I 0.9674
param set GND_WR_IMAX 0.1
param set GND_WR_P 2

param set MIS_LTRMIN_ALT 0.01
param set MIS_TAKEOFF_ALT 0.01
param set NAV_ACC_RAD 0.5
param set NAV_LOITER_RAD 2

param set CBRK_AIRSPD_CHK 162128

param set GND_MAX_ANG 0.6
param set GND_WHEEL_BASE 2.0

fi

set MAV_TYPE 10
Expand Down
20 changes: 12 additions & 8 deletions ROMFS/px4fmu_common/init.d/airframes/50003_aion_robotics_r1_rover
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,15 +29,19 @@ then
param set FW_AIRSPD_TRIM 1
param set FW_AIRSPD_MAX 3

param set GND_WR_P 1
param set GND_WR_I 0.9674
param set GND_WR_IMAX 0.1
param set GND_WR_D 0.1
param set GND_SP_CTRL_MODE 1
param set GND_L1_DIST 10
param set GND_L1_DIST 5.0
param set GND_L1_PERIOD 3.0
param set GND_THR_IDLE 0
param set GND_THR_CRUISE 0
param set GND_THR_CRUISE 0.7
param set GND_THR_MAX 0.5

# Because this is differential drive, it can make a turn with radius 0.
# This corresponds to a turn angle of pi radians.
# If a special case is made for differential-drive, this will need to change.
param set GND_MAX_ANG 3.142
param set GND_WHEEL_BASE 0.3

# TODO: Set to -1.0, to allow reversing. This will require many changes in the codebase
# to support negative throttle.
param set GND_THR_MIN 0.0
Expand All @@ -64,7 +68,7 @@ then
param set CBRK_AIRSPD_CHK 162128
fi

# Configure this as ugv
# Configure this as rover
set MAV_TYPE 10

# Set mixer
Expand Down
3 changes: 1 addition & 2 deletions ROMFS/px4fmu_common/init.d/rc.rover_apps
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ ekf2 start
#
# Start attitude controllers.
#
gnd_att_control start
gnd_pos_control start
rover_pos_control start


#
Expand Down
3 changes: 1 addition & 2 deletions boards/aerotenna/ocpoc/ubuntu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/airmind/mindpx-v2/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/atlflight/eagle/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/atlflight/eagle/qurt-default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ px4_add_board(
ekf2
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
local_position_estimator
Expand Down
3 changes: 1 addition & 2 deletions boards/atlflight/excelsior/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/atlflight/excelsior/qurt-default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ px4_add_board(
ekf2
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
local_position_estimator
Expand Down
3 changes: 1 addition & 2 deletions boards/auav/x21/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/av/x-v1/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/beaglebone/blue/cross.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/beaglebone/blue/native.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/bitcraze/crazyflie/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ px4_add_board(
events
#fw_att_control
#fw_pos_control_l1
#gnd_att_control
#gnd_pos_control
#rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/emlid/navio2/cross.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/emlid/navio2/native.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/intel/aerofc-v1/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ px4_add_board(
events
#fw_att_control
#fw_pos_control_l1
#gnd_att_control
#gnd_pos_control
#rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/intel/aerofc-v1/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ px4_add_board(
events
#fw_att_control
#fw_pos_control_l1
#gnd_att_control
#gnd_pos_control
#rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/nxp/fmuk66-v3/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/omnibus/f4sd/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ px4_add_board(
events
#fw_att_control
#fw_pos_control_l1
#gnd_att_control
#gnd_pos_control
#rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/parrot/bebop/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ px4_add_board(
events
#fw_att_control
#fw_pos_control_l1
#gnd_att_control
#gnd_pos_control
#rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/px4/fmu-v2/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
#gnd_att_control
#gnd_pos_control
#rover_pos_control
land_detector
#landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/px4/fmu-v2/lpe.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ px4_add_board(
events
#fw_att_control
#fw_pos_control_l1
#gnd_att_control
#gnd_pos_control
#rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/px4/fmu-v2/rover.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ px4_add_board(
dataman
ekf2
events
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
load_mon
logger
Expand Down
3 changes: 1 addition & 2 deletions boards/px4/fmu-v2/test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ px4_add_board(
events
#fw_att_control
#fw_pos_control_l1
#gnd_att_control
#gnd_pos_control
#rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/px4/fmu-v3/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/px4/fmu-v3/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/px4/fmu-v3/stackcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/px4/fmu-v4/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/px4/fmu-v4/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/px4/fmu-v4/stackcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/px4/fmu-v4pro/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/px4/fmu-v4pro/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/px4/fmu-v5/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ px4_add_board(
events
fw_att_control
fw_pos_control_l1
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
landing_target_estimator
load_mon
Expand Down
3 changes: 1 addition & 2 deletions boards/px4/fmu-v5/rover.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ px4_add_board(
dataman
ekf2
events
gnd_att_control
gnd_pos_control
rover_pos_control
land_detector
load_mon
logger
Expand Down
Loading