Attitude fw: Remove builtin perf counters

This commit is contained in:
Lorenz Meier
2016-05-05 20:06:01 +02:00
parent 22d18d638c
commit 199c423f1f
8 changed files with 6 additions and 22 deletions
+1 -3
View File
@@ -1,6 +1,6 @@
/****************************************************************************
*
* Copyright (c) 2013 Estimation and Control Library (ECL). All rights reserved.
* Copyright (c) 2013-2016 Estimation and Control Library (ECL). All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -60,7 +60,6 @@ float ECL_RollController::control_attitude(const struct ECL_ControlData &ctl_dat
{
/* Do not calculate control signal with bad inputs */
if (!(PX4_ISFINITE(ctl_data.roll_setpoint) && PX4_ISFINITE(ctl_data.roll))) {
perf_count(_nonfinite_input_perf);
return _rate_setpoint;
}
@@ -90,7 +89,6 @@ float ECL_RollController::control_bodyrate(const struct ECL_ControlData &ctl_dat
PX4_ISFINITE(ctl_data.airspeed_min) &&
PX4_ISFINITE(ctl_data.airspeed_max) &&
PX4_ISFINITE(ctl_data.scaler))) {
perf_count(_nonfinite_input_perf);
return math::constrain(_last_output, -1.0f, 1.0f);
}