mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 21:43:34 +08:00
- new modules/simulation directory to collect all simulators and related modules - new Tools/simulation directory to collect and organize scattered simulation submodules, scripts, etc - simulation module renamed to simulator_mavlink - sih renamed to simulator_sih (not a great name, but I wanted to be clear it was a simulator) - ignition_simulator renamed to simulator_ignition_bridge - large sitl_target.cmake split by simulation option and in some cases pushed to appropriate modules - sitl targets broken down to what's actually available (eg jmavsim only has 1 model and 1 world) - new Gazebo consistently referred to as Ignition for now (probably the least confusing thing until we fully drop Gazebo classic support someday)
45 lines
1.1 KiB
Bash
45 lines
1.1 KiB
Bash
#!/bin/sh
|
|
#
|
|
# @name QuadrotorX SITL for SIH
|
|
#
|
|
# @type Quadrotor
|
|
#
|
|
# @maintainer Romain Chiappinelli <romain.chiap@gmail.com>
|
|
#
|
|
|
|
. ${R}etc/init.d/rc.mc_defaults
|
|
|
|
PX4_SIMULATOR=${PX4_SIMULATOR:=sihsim}
|
|
PX4_SIM_MODEL=${PX4_SIM_MODEL:=quadx}
|
|
|
|
# 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 CA_ROTOR_COUNT 4
|
|
param set-default CA_ROTOR0_PX 0.15
|
|
param set-default CA_ROTOR0_PY 0.15
|
|
param set-default CA_ROTOR0_KM 0.05
|
|
param set-default CA_ROTOR1_PX -0.15
|
|
param set-default CA_ROTOR1_PY -0.15
|
|
param set-default CA_ROTOR1_KM 0.05
|
|
param set-default CA_ROTOR2_PX 0.15
|
|
param set-default CA_ROTOR2_PY -0.15
|
|
param set-default CA_ROTOR2_KM -0.05
|
|
param set-default CA_ROTOR3_PX -0.15
|
|
param set-default CA_ROTOR3_PY 0.15
|
|
param set-default CA_ROTOR3_KM -0.05
|
|
|
|
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 SIH_VEHICLE_TYPE 0
|
|
|