-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0081cf
commit 3dcd49e
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
ROMFS/px4fmu_common/init.d-posix/airframes/4012_gz_rover_ackermann
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/sh | ||
# @name Rover Ackermann | ||
# @type Rover | ||
# @class Rover | ||
|
||
. ${R}etc/init.d/rc.rover_ackermann_defaults | ||
|
||
PX4_SIMULATOR=${PX4_SIMULATOR:=gz} | ||
PX4_GZ_WORLD=${PX4_GZ_WORLD:=default} | ||
PX4_SIM_MODEL=${PX4_SIM_MODEL:=rover_ackermann} | ||
|
||
param set-default SIM_GZ_EN 1 # Gazebo bridge | ||
|
||
# Rover parameters | ||
param set-default RA_ACC_RAD_DEF 0.5 | ||
param set-default RA_ACC_RAD_GAIN 2 | ||
param set-default RA_ACC_RAD_MAX 3 | ||
param set-default RA_LOOKAHD_GAIN 1 | ||
param set-default RA_LOOKAHD_MAX 10 | ||
param set-default RA_LOOKAHD_MIN 1 | ||
param set-default RA_MAX_ACCEL 0.5 | ||
param set-default RA_MAX_SPEED 3 | ||
param set-default RA_MAX_STR_ANG 0.5236 | ||
param set-default RA_MAX_STR_RATE 60 | ||
param set-default RA_MISS_VEL_DEF 3 | ||
param set-default RA_MISS_VEL_GAIN 5 | ||
param set-default RA_MISS_VEL_MIN 1 | ||
param set-default RA_MISS_VEL_RED 1.3 | ||
param set-default RA_SPEED_I 1 | ||
param set-default RA_SPEED_P 1 | ||
param set-default RA_WHEEL_BASE 0.321 | ||
|
||
# Simulated sensors | ||
param set-default SENS_EN_GPSSIM 1 | ||
param set-default SENS_EN_BAROSIM 0 | ||
param set-default SENS_EN_MAGSIM 1 | ||
param set-default SENS_EN_ARSPDSIM 0 | ||
|
||
# Wheels | ||
param set-default SIM_GZ_WH_FUNC1 101 | ||
param set-default SIM_GZ_WH_MIN1 0 | ||
param set-default SIM_GZ_WH_MAX1 200 | ||
param set-default SIM_GZ_WH_DIS1 100 | ||
|
||
# Steering | ||
param set-default SIM_GZ_SV_FUNC1 201 | ||
param set-default SIM_GZ_SV_REV 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters