mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-08 18:00:35 +08:00
Dodeca mixer using the AUX channels (#7532)
* Added Dodecarotor Mixer * fixed formatting style * Renamed dodeca mixers to top and bottom
This commit is contained in:
@@ -172,6 +172,13 @@ MultirotorMixer::from_text(Mixer::ControlCallback control_cb, uintptr_t cb_handl
|
||||
} else if (!strcmp(geomname, "8c")) {
|
||||
geometry = MultirotorGeometry::OCTA_COX;
|
||||
|
||||
} else if (!strcmp(geomname, "6m")) {
|
||||
geometry = MultirotorGeometry::DODECA_TOP_COX;
|
||||
|
||||
} else if (!strcmp(geomname, "6a")) {
|
||||
geometry = MultirotorGeometry::DODECA_BOTTOM_COX;
|
||||
|
||||
|
||||
#if 0
|
||||
|
||||
} else if (!strcmp(geomname, "8cw")) {
|
||||
|
||||
@@ -195,8 +195,25 @@ tri_y = [
|
||||
[ 180, 0.0],
|
||||
]
|
||||
|
||||
dodeca_top_cox = [
|
||||
[ 90, CW],
|
||||
[ -90, CCW],
|
||||
[ -30, CW],
|
||||
[ 150, CCW],
|
||||
[ 30, CCW],
|
||||
[-150, CW],
|
||||
]
|
||||
|
||||
tables = [quad_x, quad_h, quad_plus, quad_v, quad_wide, quad_s250aq, quad_deadcat, hex_x, hex_plus, hex_cox, hex_t, octa_x, octa_plus, octa_cox, octa_cox_wide, twin_engine, tri_y]
|
||||
dodeca_bottom_cox = [
|
||||
[ 90, CCW],
|
||||
[ -90, CW],
|
||||
[ -30, CCW],
|
||||
[ 150, CW],
|
||||
[ 30, CW],
|
||||
[-150, CCW],
|
||||
]
|
||||
|
||||
tables = [quad_x, quad_h, quad_plus, quad_v, quad_wide, quad_s250aq, quad_deadcat, hex_x, hex_plus, hex_cox, hex_t, octa_x, octa_plus, octa_cox, octa_cox_wide, twin_engine, tri_y, dodeca_top_cox, dodeca_bottom_cox]
|
||||
|
||||
def variableName(variable):
|
||||
for variableName, value in list(globals().items()):
|
||||
|
||||
Reference in New Issue
Block a user