diff --git a/ROMFS/px4fmu_common/init.d-posix/airframes/10019_omnicopter b/ROMFS/px4fmu_common/init.d-posix/airframes/10019_omnicopter new file mode 100644 index 0000000000..4e3491dd71 --- /dev/null +++ b/ROMFS/px4fmu_common/init.d-posix/airframes/10019_omnicopter @@ -0,0 +1,101 @@ +#!/bin/sh +# +# @name 6DoF Omnicopter SITL +# +# @type Quadrotor Wide +# +# @maintainer Jaeyoung Lim +# + +. ${R}etc/init.d/rc.mc_defaults + +param set-default SYS_CTRL_ALLOC 1 + + +param set-default CA_AIRFRAME 0 + +param set-default CA_ROTOR_COUNT 8 +param set-default CA_R_REV 255 + +param set-default CA_ROTOR0_PX 0.14435 +param set-default CA_ROTOR0_PY -0.14435 +param set-default CA_ROTOR0_PZ -0.14435 +param set-default CA_ROTOR0_KM 0.05 # CCW +param set-default CA_ROTOR0_AX -0.788675 +param set-default CA_ROTOR0_AY -0.211325 +param set-default CA_ROTOR0_AZ -0.57735 + +param set-default CA_ROTOR1_PX -0.14435 +param set-default CA_ROTOR1_PY -0.14435 +param set-default CA_ROTOR1_PZ -0.14435 +param set-default CA_ROTOR1_KM 0.05 +param set-default CA_ROTOR1_AX 0.211325 +param set-default CA_ROTOR1_AY -0.788675 +param set-default CA_ROTOR1_AZ 0.57735 + +param set-default CA_ROTOR2_PX 0.14435 +param set-default CA_ROTOR2_PY 0.14435 +param set-default CA_ROTOR2_PZ -0.14435 +param set-default CA_ROTOR2_KM 0.05 +param set-default CA_ROTOR2_AX -0.211325 +param set-default CA_ROTOR2_AY 0.788675 +param set-default CA_ROTOR2_AZ 0.57735 + +param set-default CA_ROTOR3_PX -0.14435 +param set-default CA_ROTOR3_PY 0.14435 +param set-default CA_ROTOR3_PZ -0.14435 +param set-default CA_ROTOR3_KM 0.05 +param set-default CA_ROTOR3_AX 0.788675 +param set-default CA_ROTOR3_AY 0.211325 +param set-default CA_ROTOR3_AZ -0.57735 + +param set-default CA_ROTOR4_PX 0.14435 +param set-default CA_ROTOR4_PY -0.14435 +param set-default CA_ROTOR4_PZ 0.14435 +param set-default CA_ROTOR4_KM 0.05 +param set-default CA_ROTOR4_AX 0.788675 +param set-default CA_ROTOR4_AY 0.211325 +param set-default CA_ROTOR4_AZ -0.57735 + +param set-default CA_ROTOR5_PX -0.14435 +param set-default CA_ROTOR5_PY -0.14435 +param set-default CA_ROTOR5_PZ 0.14435 +param set-default CA_ROTOR5_KM 0.05 +param set-default CA_ROTOR5_AX -0.211325 +param set-default CA_ROTOR5_AY 0.788675 +param set-default CA_ROTOR5_AZ 0.57735 + +param set-default CA_ROTOR6_PX 0.14435 +param set-default CA_ROTOR6_PY 0.14435 +param set-default CA_ROTOR6_PZ 0.14435 +param set-default CA_ROTOR6_KM 0.05 +param set-default CA_ROTOR6_AX 0.211325 +param set-default CA_ROTOR6_AY -0.788675 +param set-default CA_ROTOR6_AZ 0.57735 + +param set-default CA_ROTOR7_PX -0.14435 +param set-default CA_ROTOR7_PY 0.14435 +param set-default CA_ROTOR7_PZ 0.14435 +param set-default CA_ROTOR7_KM 0.05 +param set-default CA_ROTOR7_AX -0.788675 +param set-default CA_ROTOR7_AY -0.211325 +param set-default CA_ROTOR7_AZ -0.57735 + +param set-default PWM_MAIN_FUNC1 101 +param set-default PWM_MAIN_FUNC2 102 +param set-default PWM_MAIN_FUNC3 103 +param set-default PWM_MAIN_FUNC4 104 +param set-default PWM_MAIN_FUNC5 105 +param set-default PWM_MAIN_FUNC6 106 +param set-default PWM_MAIN_FUNC7 107 +param set-default PWM_MAIN_FUNC8 108 + +# disable MC desaturation which improves attitude tracking +param set-default CA_METHOD 0 + +# disable attitude failure detection +param set-default FD_FAIL_P 0 +param set-default FD_FAIL_R 0 + +set MIXER skip +set MIXER_AUX none diff --git a/ROMFS/px4fmu_common/init.d-posix/airframes/CMakeLists.txt b/ROMFS/px4fmu_common/init.d-posix/airframes/CMakeLists.txt index df3cbe3779..6343f511a2 100644 --- a/ROMFS/px4fmu_common/init.d-posix/airframes/CMakeLists.txt +++ b/ROMFS/px4fmu_common/init.d-posix/airframes/CMakeLists.txt @@ -35,6 +35,7 @@ px4_add_romfs_files( 10016_iris 10017_iris_ctrlalloc 10018_iris_foggy_lidar + 10019_omnicopter 10020_if750a 10030_px4vision 1010_iris_opt_flow diff --git a/Tools/sitl_gazebo b/Tools/sitl_gazebo index 5eb5df8045..5610c3fb44 160000 --- a/Tools/sitl_gazebo +++ b/Tools/sitl_gazebo @@ -1 +1 @@ -Subproject commit 5eb5df80450a412076bfc24e7dd343839020f056 +Subproject commit 5610c3fb441a2f3babc8ad7a63c8c4ce3e40abfa diff --git a/platforms/posix/cmake/sitl_target.cmake b/platforms/posix/cmake/sitl_target.cmake index 1aedf5b051..bc512f6675 100644 --- a/platforms/posix/cmake/sitl_target.cmake +++ b/platforms/posix/cmake/sitl_target.cmake @@ -177,6 +177,7 @@ set(models typhoon_h480_ctrlalloc uuv_bluerov2_heavy uuv_hippocampus + omnicopter ) set(worlds