Skip to content

Commit cf318a4

Browse files
committed
Add dual motor mixer
1 parent fea99fa commit cf318a4

File tree

3 files changed

+63
-1
lines changed

3 files changed

+63
-1
lines changed

ROMFS/px4fmu_common/init.d/airframes/22003_asl_believer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ param set-default PWM_MAIN_DISARM 1000
4646
# The Mini Talon does not have a wheel and
4747
# no flaps. I leave them here because the mixer
4848
# computes also wheel and flap controls.
49-
set MIXER AAVVTWFF_vtail
49+
set MIXER AAVVTTFF_vtail
5050

5151
# use PWM parameters for throttle channel
5252
set PWM_OUT 5
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
Aileron/v-tail/throttle/wheel/flaps mixer for PX4FMU
2+
=======================================================
3+
4+
This file defines mixers suitable for controlling a fixed wing aircraft with
5+
aileron, v-tail (rudder, elevator), throttle, steerable wheel and flaps
6+
using PX4FMU.
7+
The configuration assumes the aileron servos are connected to PX4FMU servo
8+
output 0 and 1, the tail servos to output 2 and 3, the throttle
9+
to output 4, the wheel to output 5 and the flaps to output 6 and 7.
10+
11+
Inputs to the mixer come from channel group 0 (vehicle attitude), channels 0
12+
(roll), 1 (pitch), 2 (yaw) and 3 (thrust) 4 (flaps) 6 (flaperon).
13+
14+
Aileron mixer (roll + flaperon)
15+
---------------------------------
16+
17+
This mixer assumes that the aileron servos are set up mechanically reversed.
18+
19+
M: 2
20+
S: 0 0 -10000 -10000 0 -10000 10000
21+
S: 0 6 10000 10000 0 -10000 10000
22+
23+
M: 2
24+
S: 0 0 -10000 -10000 0 -10000 10000
25+
S: 0 6 -10000 -10000 0 -10000 10000
26+
27+
V-tail mixers
28+
-------------
29+
Three scalers total (output, roll, pitch).
30+
31+
M: 2
32+
S: 0 2 7000 7000 0 -10000 10000
33+
S: 0 1 -8000 -8000 0 -10000 10000
34+
35+
M: 2
36+
S: 0 2 7000 7000 0 -10000 10000
37+
S: 0 1 8000 8000 0 -10000 10000
38+
39+
Motor speed mixer
40+
-----------------
41+
Two scalers total (output, thrust).
42+
43+
This mixer generates a full-range output (-1 to 1) from an input in the (0 - 1)
44+
range. Inputs below zero are treated as zero.
45+
46+
M: 1
47+
S: 0 3 0 20000 -10000 -10000 10000
48+
49+
M: 1
50+
S: 0 3 0 20000 -10000 -10000 10000
51+
52+
Flaps mixer
53+
------------
54+
Flap servos are physically reversed.
55+
56+
M: 1
57+
S: 0 4 0 5000 -10000 -10000 10000
58+
59+
M: 1
60+
S: 0 4 0 -5000 10000 -10000 10000
61+

ROMFS/px4fmu_common/mixers/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ px4_add_romfs_files(
3535
AAERTWF.main.mix
3636
AAVVTWFF.main.mix
3737
AAVVTWFF_vtail.main.mix
38+
AAVVTTFF_vtail.main.mix
3839
AERT.main.mix
3940
AETRFG.main.mix
4041
babyshark.main.mix

0 commit comments

Comments
 (0)