-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Pr tiltrotor sim #8936
Merged
Merged
Pr tiltrotor sim #8936
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
21d7d7a
ROMFS sitl: added a mixer for the gazebo quad tiltrotor model
RomanBapst 81633c2
posix-configs: added sitl startup script for gazebo quad tiltrotor model
RomanBapst ef6b64e
pwm_out_sim: various fixes for tiltrotor simulation
RomanBapst 2994262
simulator mavlink: support for quad tiltrotor mav type
RomanBapst 83b9c07
posix-configs: set tiltrotor transition parameters
RomanBapst 236fa51
updated sitl_gazebo for tiltrotor support
RomanBapst 257cb3b
params cmd: be less verbose
RomanBapst 42156be
pwm_out_sim, simulator_mavlink: fixed code style
RomanBapst File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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,41 @@ | ||
Mixer for quad tiltrotor (x motor configuration) | ||
================================================ | ||
|
||
This file defines a single mixer for a tiltrotor (SITL gazebo) with motors in X configuration. The plane has two ailerons and one elevator. | ||
|
||
R: 4x 10000 10000 10000 0 | ||
|
||
# tilt servo motor 1 | ||
M: 1 | ||
O: 10000 10000 0 -10000 10000 | ||
S: 1 4 0 20000 -10000 -10000 10000 | ||
|
||
# tilt servo motor 2 | ||
M: 1 | ||
O: 10000 10000 0 -10000 10000 | ||
S: 1 4 0 20000 -10000 -10000 10000 | ||
|
||
# tilt servo motor 3 | ||
M: 1 | ||
O: 10000 10000 0 -10000 10000 | ||
S: 1 4 0 20000 -10000 -10000 10000 | ||
|
||
# tilt servo motor 4 | ||
M: 1 | ||
O: 10000 10000 0 -10000 10000 | ||
S: 1 4 0 20000 -10000 -10000 10000 | ||
|
||
# mixer for the left aileron | ||
M: 1 | ||
O: 10000 10000 0 -10000 10000 | ||
S: 1 0 10000 10000 0 -10000 10000 | ||
|
||
# mixer for the right aileron | ||
M: 1 | ||
O: 10000 10000 0 -10000 10000 | ||
S: 1 0 -10000 -10000 0 -10000 10000 | ||
|
||
# mixer for the elevator | ||
M: 1 | ||
O: 10000 10000 0 -10000 10000 | ||
S: 1 1 10000 10000 0 -10000 10000 |
Submodule sitl_gazebo
updated
from 84e14e to 4c1150
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
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,99 @@ | ||
uorb start | ||
param load | ||
dataman start | ||
param set BAT_N_CELLS 3 | ||
param set CAL_ACC0_ID 1376264 | ||
param set CAL_ACC0_XOFF 0.01 | ||
param set CAL_ACC0_XSCALE 1.01 | ||
param set CAL_ACC0_YOFF -0.01 | ||
param set CAL_ACC0_YSCALE 1.01 | ||
param set CAL_ACC0_ZOFF 0.01 | ||
param set CAL_ACC0_ZSCALE 1.01 | ||
param set CAL_ACC1_ID 1310728 | ||
param set CAL_ACC1_XOFF 0.01 | ||
param set CAL_GYRO0_ID 2293768 | ||
param set CAL_GYRO0_XOFF 0.01 | ||
param set CAL_MAG0_ID 196616 | ||
param set CAL_MAG0_XOFF 0.01 | ||
param set COM_DISARM_LAND 5 | ||
param set COM_RC_IN_MODE 1 | ||
param set EKF2_AID_MASK 1 | ||
param set EKF2_ANGERR_INIT 0.01 | ||
param set EKF2_GBIAS_INIT 0.01 | ||
param set EKF2_HGT_MODE 0 | ||
param set EKF2_MAG_TYPE 1 | ||
param set FW_AIRSPD_MAX 25 | ||
param set FW_AIRSPD_MIN 14 | ||
param set FW_AIRSPD_TRIM 16 | ||
param set MAV_TYPE 21 | ||
param set MC_PITCH_P 6 | ||
param set MC_PITCHRATE_P 0.2 | ||
param set MC_ROLL_P 6 | ||
param set MC_ROLLRATE_P 0.3 | ||
param set MIS_LTRMIN_ALT 10 | ||
param set MIS_TAKEOFF_ALT 10 | ||
param set MIS_YAW_TMT 10 | ||
param set MPC_ACC_HOR_MAX 2 | ||
param set MPC_ACC_HOR_MAX 2.0 | ||
param set MPC_TKO_SPEED 1.0 | ||
param set MPC_XY_P 0.8 | ||
param set MPC_XY_VEL_D 0.005 | ||
param set MPC_XY_VEL_I 0.2 | ||
param set MPC_XY_VEL_P 0.15 | ||
param set MPC_Z_VEL_I 0.15 | ||
param set MPC_Z_VEL_MAX_DN 1.5 | ||
param set MPC_Z_VEL_P 0.6 | ||
param set NAV_ACC_RAD 5.0 | ||
param set NAV_DLL_ACT 2 | ||
param set NAV_LOITER_RAD 80 | ||
param set RTL_DESCEND_ALT 10.0 | ||
param set RTL_LAND_DELAY 0 | ||
param set RTL_RETURN_ALT 30.0 | ||
param set SDLOG_DIRS_MAX 7 | ||
param set SENS_BOARD_ROT 0 | ||
param set SENS_BOARD_X_OFF 0.000001 | ||
param set SENS_DPRES_OFF 0.001 | ||
param set SYS_AUTOSTART 13006 | ||
param set SYS_MC_EST_GROUP 2 | ||
param set SYS_RESTART_TYPE 2 | ||
param set VT_MOT_COUNT 4 | ||
param set VT_TRANS_THR 0.75 | ||
param set VT_TYPE 1 | ||
param set VT_TILT_FW 3.1415 | ||
param set VT_TILT_TRANS 1.2 | ||
replay tryapplyparams | ||
simulator start -s | ||
tone_alarm start | ||
gyrosim start | ||
accelsim start | ||
barosim start | ||
adcsim start | ||
gpssim start | ||
measairspeedsim start | ||
pwm_out_sim mode_pwm | ||
sensors start | ||
commander start | ||
land_detector start vtol | ||
navigator start | ||
ekf2 start | ||
vtol_att_control start | ||
mc_pos_control start | ||
mc_att_control start | ||
fw_pos_control_l1 start | ||
fw_att_control start | ||
mixer load /dev/pwm_output0 ROMFS/sitl/mixers/tiltrotor_sitl.main.mix | ||
mavlink start -x -u 14556 -r 2000000 -f | ||
mavlink start -x -u 14557 -r 2000000 -m onboard -o 14540 -f | ||
mavlink stream -r 20 -s EXTENDED_SYS_STATE -u 14557 | ||
mavlink stream -r 80 -s POSITION_TARGET_LOCAL_NED -u 14556 | ||
mavlink stream -r 80 -s LOCAL_POSITION_NED -u 14556 | ||
mavlink stream -r 80 -s GLOBAL_POSITION_INT -u 14556 | ||
mavlink stream -r 80 -s ATTITUDE -u 14556 | ||
mavlink stream -r 80 -s ATTITUDE_QUATERNION -u 14556 | ||
mavlink stream -r 80 -s ATTITUDE_TARGET -u 14556 | ||
mavlink stream -r 20 -s RC_CHANNELS -u 14556 | ||
mavlink stream -r 250 -s HIGHRES_IMU -u 14556 | ||
mavlink stream -r 10 -s OPTICAL_FLOW_RAD -u 14556 | ||
logger start -e -t | ||
mavlink boot_complete | ||
replay trystart |
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
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add as a generic tiltrotor mixer?