mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Fix mixer reporting
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012-2015 PX4 Development Team. All rights reserved.
|
* Copyright (c) 2012-2016 PX4 Development Team. All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@@ -307,7 +307,7 @@ MultirotorMixer::mix(float *outputs, unsigned space, uint16_t *status_reg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (max_out > 0.0f) {
|
if (max_out > 1.0f) {
|
||||||
if (status_reg != NULL) {
|
if (status_reg != NULL) {
|
||||||
(*status_reg) |= PX4IO_P_STATUS_MIXER_UPPER_LIMIT;
|
(*status_reg) |= PX4IO_P_STATUS_MIXER_UPPER_LIMIT;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user