mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
add balloon defaults
This commit is contained in:
committed by
Lorenz Meier
parent
1fea1a2822
commit
6c839f9b02
@@ -36,6 +36,8 @@ add_subdirectory(airframes)
|
|||||||
px4_add_romfs_files(
|
px4_add_romfs_files(
|
||||||
rc.airship_apps
|
rc.airship_apps
|
||||||
rc.airship_defaults
|
rc.airship_defaults
|
||||||
|
rc.balloon_apps
|
||||||
|
rc.balloon_defaults
|
||||||
rc.boat_defaults
|
rc.boat_defaults
|
||||||
rc.fw_apps
|
rc.fw_apps
|
||||||
rc.fw_defaults
|
rc.fw_defaults
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# @name ThunderFly stratospheric balloon TF-B1
|
# @name ThunderFly balloon TF-B1
|
||||||
#
|
#
|
||||||
# @type Balloon
|
# @type Balloon
|
||||||
# @class Balloon
|
# @class Balloon
|
||||||
@@ -14,12 +14,12 @@
|
|||||||
# @board bitcraze_crazyflie exclude
|
# @board bitcraze_crazyflie exclude
|
||||||
#
|
#
|
||||||
|
|
||||||
. ${R}etc/init.d/rc.fw_defaults
|
. ${R}etc/init.d/rc.balloon_defaults
|
||||||
|
|
||||||
if [ $AUTOCNF = yes ]
|
if [ $AUTOCNF = yes ]
|
||||||
then
|
then
|
||||||
param set BAT_CAPACITY 2500
|
param set COM_PREARM_MODE 2 # always in prearm state
|
||||||
param set BAT_N_CELLS 2
|
param set CBRK_IO_SAFETY 22027
|
||||||
|
|
||||||
param set SENS_BOARD_ROT 8
|
param set SENS_BOARD_ROT 8
|
||||||
param set MAV_TYPE 8 # MAV_TYPE_FREE_BALLOON
|
param set MAV_TYPE 8 # MAV_TYPE_FREE_BALLOON
|
||||||
@@ -27,5 +27,5 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
set MIXER TF-AutoG2
|
set MIXER IO_pass
|
||||||
set MIXER_AUX pass
|
set MIXER_AUX pass
|
||||||
|
|||||||
11
ROMFS/px4fmu_common/init.d/rc.balloon_apps
Normal file
11
ROMFS/px4fmu_common/init.d/rc.balloon_apps
Normal 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 &
|
||||||
19
ROMFS/px4fmu_common/init.d/rc.balloon_defaults
Normal file
19
ROMFS/px4fmu_common/init.d/rc.balloon_defaults
Normal 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
|
||||||
Reference in New Issue
Block a user