forked from PX4/PX4-Autopilot
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ff693f
commit 2f1406c
Showing
2 changed files
with
82 additions
and
0 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,81 @@ | ||
#!/bin/sh | ||
# | ||
# @name Skywalker X5 | ||
# | ||
# @type Flying Wing | ||
# @class Plane | ||
# | ||
# @board px4_fmu-v2 exclude | ||
# @board bitcraze_crazyflie exclude | ||
# | ||
|
||
. /etc/init.d/rc.fw_defaults | ||
|
||
# Control allocator parameters | ||
param set-default CA_AIRFRAME 1 | ||
param set-default CA_ROTOR_COUNT 1 | ||
|
||
# PWM | ||
param set-default PWM_MAIN_FUNC1 201 | ||
param set-default PWM_MAIN_FUNC2 202 | ||
param set-default PWM_MAIN_FUNC3 101 | ||
|
||
# Airspeed parameters | ||
ms4525do start -X -f 500 | ||
param set-default SENS_EN_MS4525DO 1 | ||
param set-default ASPD_DO_CHECKS 15 | ||
param set-default FW_AIRSPD_MAX 25.0 | ||
param set-default FW_AIRSPD_MIN 13.0 | ||
param set-default FW_AIRSPD_STALL 10.0 | ||
param set-default FW_AIRSPD_TRIM 18.0 | ||
|
||
# Mission parameters | ||
param set-default MIS_TAKEOFF_ALT 25.0 | ||
param set-default MIS_TKO_LAND_REQ 4 | ||
param set-default NAV_LOITER_RAD 40.0 | ||
|
||
# Battery parameters | ||
param set-default BAT1_N_CELLS 6 | ||
param set-default BAT1_V_EMPTY 3.7000 | ||
|
||
# Disable internal magnetometer | ||
param set-default CAL_MAG0_PRIO 1 | ||
param set-default CAL_MAG0_ROT 0 | ||
param set-default CAL_MAG1_PRIO 100 | ||
param set-default CAL_MAG1_ROT 0 | ||
|
||
param set-default SENS_MAG_MODE 0 | ||
|
||
# Launch detection | ||
param set-default FW_LAUN_AC_T 0.0 | ||
param set-default FW_LAUN_AC_THLD 0.0 | ||
param set-default FW_LAUN_DETCN_ON 1 | ||
|
||
# Launch detection | ||
param set-default FW_LND_ANG 15.0 | ||
param set-default FW_LND_ABORT 0 | ||
|
||
# Maximum manual roll angle | ||
param set-default FW_MAN_R_MAX 60.0 | ||
|
||
# Misc | ||
param set-default RTL_RETURN_ALT 100.0 | ||
|
||
# Failsafe | ||
param set-default NAV_RCL_ACT 1 | ||
param set-default NAV_DLL_ACT 0 | ||
param set-default RC_MAP_KILL_SW 5 | ||
|
||
# Flight mode | ||
param set-default RC_MAP_FLTMODE 6 | ||
param set-default COM_FLTMODE1 0 | ||
param set-default COM_FLTMODE4 1 | ||
param set-default COM_FLTMODE6 2 | ||
|
||
# Geometry | ||
param set-default FW_WING_HEIGHT 0.2 | ||
param set-default FW_WING_SPAN 2.1 | ||
|
||
param set-default SYS_AUTOCONFIG 1 | ||
|
||
set MIXER fw_generic_wing |
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