forked from PX4/PX4-Autopilot
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SIH in SITL with lockstep (PX4#19028)
* sih: Move sih out of work queue This reverts commit bb7dd0c. * sih-sim: Enable sih in sitl, together with lockstep * sih-sim: new files for sih: quadx and airplane * sih: Added tailsitter for sih-sitl simulation * sitl_target: Added seperate target loop for sih * jmavsim_run: Allow jmavsim to run in UDP mode * lockstep: Post semaphore on last lockstep component removed * sih-sim: Added display for effectively achieved speed * sih: increase stack size * sih-sim: Improved sleep time computation, fixes bug of running too fast * sitl_target: place omnicopter in alphabethic order Co-authored-by: romain-chiap <[email protected]> Co-authored-by: Matthias Grob <[email protected]>
- Loading branch information
1 parent
a7e1146
commit 46c9d1e
Showing
16 changed files
with
378 additions
and
61 deletions.
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,23 @@ | ||
#!/bin/sh | ||
# | ||
# @name QuadrotorX SITL for SIH | ||
# | ||
# @type Quadrotor | ||
# | ||
# @maintainer Romain Chiappinelli <[email protected]> | ||
# | ||
|
||
. ${R}etc/init.d/rc.mc_defaults | ||
|
||
set MIXER quad_x | ||
|
||
# disable some checks to allow to fly: | ||
# - with usb | ||
param set-default CBRK_USB_CHK 197848 | ||
# - without real battery | ||
param set-default CBRK_SUPPLY_CHK 894281 | ||
# - without safety switch | ||
param set-default COM_PREARM_MODE 0 | ||
param set-default CBRK_IO_SAFETY 22027 | ||
|
||
param set SIH_VEHICLE_TYPE 0 |
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,33 @@ | ||
#!/bin/sh | ||
# | ||
# @name Plane SITL for SIH | ||
# | ||
# @type Plane | ||
# | ||
# @maintainer Romain Chiappinelli <[email protected]> | ||
|
||
. ${R}etc/init.d/rc.fw_defaults | ||
|
||
set MIXER AERT | ||
|
||
# disable some checks to allow to fly: | ||
# - with usb | ||
param set-default CBRK_USB_CHK 197848 | ||
# - without real battery | ||
param set-default CBRK_SUPPLY_CHK 894281 | ||
# - without safety switch | ||
param set-default COM_PREARM_MODE 0 | ||
param set-default CBRK_IO_SAFETY 22027 | ||
|
||
param set-default BAT_N_CELLS 3 | ||
|
||
param set SIH_T_MAX 6.0 | ||
param set SIH_MASS 0.3 | ||
param set SIH_IXX 0.00402 | ||
param set SIH_IYY 0.0144 | ||
param set SIH_IZZ 0.0177 | ||
param set SIH_IXZ 0.00046 | ||
param set SIH_KDV 0.2 | ||
|
||
param set SIH_VEHICLE_TYPE 1 # sih as fixed wing | ||
param set RWTO_TKOFF 1 # enable takeoff from runway (as opposed to launched) |
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,45 @@ | ||
#!/bin/sh | ||
# | ||
# @name SIH Tailsitter Duo | ||
# | ||
# @type VTOL | ||
# | ||
# @maintainer Romain Chiappinelli <[email protected]> | ||
|
||
. ${R}etc/init.d/rc.vtol_defaults | ||
|
||
param set-default VT_ELEV_MC_LOCK 0 | ||
param set-default VT_TYPE 0 | ||
param set-default VT_FW_DIFTHR_EN 1 | ||
param set-default VT_FW_DIFTHR_SC 0.3 | ||
param set-default MPC_MAN_Y_MAX 60 | ||
param set-default MC_PITCH_P 5 | ||
|
||
param set-default MAV_TYPE 19 | ||
set MAV_TYPE 19 | ||
set MIXER vtol_tailsitter_duo_sat | ||
|
||
# disable some checks to allow to fly: | ||
# - with usb | ||
param set-default CBRK_USB_CHK 197848 | ||
# - without real battery | ||
param set-default CBRK_SUPPLY_CHK 894281 | ||
# - without safety switch | ||
param set-default COM_PREARM_MODE 0 | ||
param set-default CBRK_IO_SAFETY 22027 | ||
|
||
param set-default BAT_N_CELLS 3 | ||
|
||
param set SIH_T_MAX 2.0 | ||
param set SIH_Q_MAX 0.0165 | ||
param set SIH_MASS 0.2 | ||
# IXX and IZZ are inverted from the thesis as the body frame is pitched by 90 deg | ||
param set SIH_IXX 0.00354 | ||
param set SIH_IYY 0.000625 | ||
param set SIH_IZZ 0.00300 | ||
param set SIH_IXZ 0.0 | ||
param set SIH_KDV 0.2 | ||
param set SIH_L_ROLL 0.145 | ||
|
||
# sih as tailsitter | ||
param set SIH_VEHICLE_TYPE 2 |
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
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
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
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
Oops, something went wrong.