add balloon defaults

This commit is contained in:
Roman Dvorak 2020-12-07 15:10:17 +01:00 committed by Lorenz Meier
parent 1fea1a2822
commit 6c839f9b02
4 changed files with 37 additions and 5 deletions

View File

@ -36,6 +36,8 @@ add_subdirectory(airframes)
px4_add_romfs_files(
rc.airship_apps
rc.airship_defaults
rc.balloon_apps
rc.balloon_defaults
rc.boat_defaults
rc.fw_apps
rc.fw_defaults

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# @name ThunderFly stratospheric balloon TF-B1
# @name ThunderFly balloon TF-B1
#
# @type Balloon
# @class Balloon
@ -14,12 +14,12 @@
# @board bitcraze_crazyflie exclude
#
. ${R}etc/init.d/rc.fw_defaults
. ${R}etc/init.d/rc.balloon_defaults
if [ $AUTOCNF = yes ]
then
param set BAT_CAPACITY 2500
param set BAT_N_CELLS 2
param set COM_PREARM_MODE 2 # always in prearm state
param set CBRK_IO_SAFETY 22027
param set SENS_BOARD_ROT 8
param set MAV_TYPE 8 # MAV_TYPE_FREE_BALLOON
@ -27,5 +27,5 @@ then
fi
set MIXER TF-AutoG2
set MIXER IO_pass
set MIXER_AUX pass

View File

@ -0,0 +1,11 @@
#!/bin/sh
#
# Standard apps for balloons
#
# NOTE: Script variables are declared/initialized/unset in the rcS script.
#
#
# Start the attitude and position estimator.
#
ekf2 start &

View File

@ -0,0 +1,19 @@
#!/bin/sh
#
# Balloon default parameters
#
# NOTE: Script variables are declared/initialized/unset in the rcS script.
#
set VEHICLE_TYPE fw
if [ $AUTOCNF = yes ]
then
#
# Default parameters for balloon UAVs.
#
#
# FW takeoff acceleration can easily exceed ublox GPS 2G default.
#
param set GPS_UBX_DYNMODEL 8
fi