mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 15:23:34 +08:00
MC mixer: replace multirotor_motor_limits by control_allocator_status
CA: fix saturation computation Since the CA matrix is normalized, the same scale applied to be used when using the effectiveness matrix MCRateControl: use control_allocator_status to get saturation info
This commit is contained in:
@@ -179,7 +179,7 @@ public:
|
||||
/**
|
||||
* Get the saturation status.
|
||||
*
|
||||
* @return Integer bitmask containing saturation_status from multirotor_motor_limits.msg.
|
||||
* @return Integer bitmask containing saturation_status from control_allocator_status.msg.
|
||||
*/
|
||||
virtual uint16_t get_saturation_status() { return 0; }
|
||||
|
||||
|
||||
@@ -451,8 +451,8 @@ MultirotorMixer::update_saturation_status(unsigned index, bool clipping_high, bo
|
||||
_saturation_status.flags.yaw_neg = true;
|
||||
}
|
||||
|
||||
// A positive change in thrust will increase saturation
|
||||
_saturation_status.flags.thrust_pos = true;
|
||||
// A positive change in thrust will increase saturation (Z neg is up)
|
||||
_saturation_status.flags.thrust_neg = true;
|
||||
}
|
||||
|
||||
// The motor is saturated at the lower limit
|
||||
@@ -478,8 +478,8 @@ MultirotorMixer::update_saturation_status(unsigned index, bool clipping_high, bo
|
||||
_saturation_status.flags.pitch_pos = true;
|
||||
}
|
||||
|
||||
// A negative change in thrust will increase saturation
|
||||
_saturation_status.flags.thrust_neg = true;
|
||||
// A negative change in thrust will increase saturation (Z pos is down)
|
||||
_saturation_status.flags.thrust_pos = true;
|
||||
}
|
||||
|
||||
if (clipping_low_yaw) {
|
||||
|
||||
Reference in New Issue
Block a user