Fix mixer reporting

This commit is contained in:
Lorenz Meier 2016-03-24 12:07:06 +01:00
parent ec930d2372
commit 76a8bea1c1

View File

@ -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
* 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) {
(*status_reg) |= PX4IO_P_STATUS_MIXER_UPPER_LIMIT;
}