mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-13 03:17:35 +08:00
Allocation: add Single Channel Aileron to CS types
This is the control surface type for airframes that have only a single aileron servo or have the ailerons on a single output channel. Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
+9
@@ -120,6 +120,15 @@ void ActuatorEffectivenessControlSurfaces::updateParams()
|
||||
|
||||
case Type::Custom:
|
||||
break;
|
||||
|
||||
case Type::LeftATail:
|
||||
break;
|
||||
|
||||
case Type::RightATail:
|
||||
break;
|
||||
|
||||
case Type::SingleChannelAileron:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+3
@@ -57,6 +57,9 @@ public:
|
||||
RightFlaps = 10,
|
||||
Airbrakes = 11,
|
||||
Custom = 12,
|
||||
LeftATail = 13,
|
||||
RightATail = 14,
|
||||
SingleChannelAileron = 15,
|
||||
};
|
||||
|
||||
struct Params {
|
||||
|
||||
@@ -270,6 +270,7 @@ parameters:
|
||||
12: Custom
|
||||
13: Left A-tail
|
||||
14: Right A-tail
|
||||
15: Single Channel Aileron
|
||||
num_instances: *max_num_servos
|
||||
instance_start: 0
|
||||
default: 0
|
||||
@@ -539,6 +540,10 @@ mixer:
|
||||
- { 'hidden': True, 'default': 0.0 } # roll
|
||||
- { 'min': 0.0, 'max': 1.0, 'default': 0.5 } # pitch
|
||||
- { 'min': 0.0, 'max': 1.0, 'default': 0.5 } # yaw
|
||||
15: # Single Channel Aileron
|
||||
- { 'min': 0.0, 'max': 1.0, 'default': 1.0 } # roll
|
||||
- { 'hidden': True, 'default': 0.0 } # pitch
|
||||
- { 'hidden': True, 'default': 0.0 } # yaw
|
||||
|
||||
- select_identifier: 'servo-type-tailsitter' # restrict torque based on servo type for tailsitters
|
||||
apply_identifiers: ['servo-torque-roll-tailsitter', 'servo-torque-pitch-tailsitter', 'servo-torque-yaw-tailsitter']
|
||||
|
||||
Reference in New Issue
Block a user