-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add generic vtol tailsitter airframe/mixer and incorporate modificati…
…ons from PR 9849 in 4001_quad_x and 13001_caipirinha_vtol.
- Loading branch information
Showing
5 changed files
with
79 additions
and
2 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
30 changes: 30 additions & 0 deletions
30
ROMFS/px4fmu_common/init.d/airframes/13200_generic_vtol_tailsitter
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,30 @@ | ||
#!/bin/sh | ||
# | ||
# @name Generic Tailsitter | ||
# | ||
# @type VTOL Duo Tailsitter | ||
# @class VTOL | ||
# | ||
# @output MAIN1 motor right | ||
# @output MAIN2 motor left | ||
# @output MAIN5 elevon right | ||
# @output MAIN6 elevon left | ||
# | ||
# @maintainer Roman Bapst <[email protected]> | ||
# | ||
|
||
sh /etc/init.d/rc.vtol_defaults | ||
|
||
if [ $AUTOCNF = yes ] | ||
then | ||
param set VT_ELEV_MC_LOCK 0 | ||
param set VT_MOT_COUNT 2 | ||
param set VT_TYPE 0 | ||
|
||
param set MAV_TYPE 19 | ||
fi | ||
|
||
set MAV_TYPE 19 | ||
set MIXER vtol_tailsitter_duo | ||
|
||
set PWM_OUT 1234 |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
# | ||
# @name Generic Quadrotor x | ||
# @name Generic Quadcopter | ||
# | ||
# @type Quadrotor x | ||
# @class Copter | ||
|
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
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,39 @@ | ||
Tailsitter duo mixer | ||
============================ | ||
|
||
This file defines a mixer for a generic duo tailsitter VTOL (eg TBS Caipirinha tailsitter edition). This vehicle | ||
has two motors in total, one attached to each wing. It also has two elevons which | ||
are located in the slipstream of the propellers. This mixer generates 4 PWM outputs | ||
on the main PWM ouput port, two at 400Hz for the motors, and two at 50Hz for the | ||
elevon servos. Channels 1-4 are configured to run at 400Hz, while channels 5-8 run | ||
at the default rate of 50Hz. Note that channels 3 and 4 are assigned but not used. | ||
|
||
Motor mixer | ||
------------ | ||
Channel 1 connects to the right (starboard) motor. | ||
Channel 2 connects to the left (port) motor. | ||
|
||
R: 2- 10000 10000 10000 0 | ||
|
||
Zero mixer (2x) | ||
--------------- | ||
Channels 3,4 are unused. | ||
|
||
Z: | ||
|
||
Z: | ||
|
||
Elevons mixer | ||
-------------- | ||
Channel 5 connects to the right (starboard) elevon. | ||
Channel 6 connects to the left (port) elevon. | ||
|
||
M: 2 | ||
O: 7500 7500 0 -10000 10000 | ||
S: 1 0 -10000 -10000 0 -10000 10000 | ||
S: 1 1 10000 10000 0 -10000 10000 | ||
|
||
M: 2 | ||
O: 7500 7500 0 -10000 10000 | ||
S: 1 0 -10000 -10000 0 -10000 10000 | ||
S: 1 1 -10000 -10000 0 -10000 10000 |