fix initialization of perfcounters in fw att controllers

This commit is contained in:
Thomas Gubler 2014-06-08 12:30:27 +02:00
parent 3e66d7e0c9
commit 85b2dfa0c6
3 changed files with 6 additions and 6 deletions

View File

@ -61,9 +61,9 @@ ECL_PitchController::ECL_PitchController() :
_integrator(0.0f), _integrator(0.0f),
_rate_error(0.0f), _rate_error(0.0f),
_rate_setpoint(0.0f), _rate_setpoint(0.0f),
_bodyrate_setpoint(0.0f) _bodyrate_setpoint(0.0f),
_nonfinite_input_perf(perf_alloc(PC_COUNT, "fw att control pitch nonfinite input"))
{ {
perf_alloc(PC_COUNT, "fw att control pitch nonfinite input");
} }
ECL_PitchController::~ECL_PitchController() ECL_PitchController::~ECL_PitchController()

View File

@ -59,9 +59,9 @@ ECL_RollController::ECL_RollController() :
_integrator(0.0f), _integrator(0.0f),
_rate_error(0.0f), _rate_error(0.0f),
_rate_setpoint(0.0f), _rate_setpoint(0.0f),
_bodyrate_setpoint(0.0f) _bodyrate_setpoint(0.0f),
_nonfinite_input_perf(perf_alloc(PC_COUNT, "fw att control roll nonfinite input"))
{ {
perf_alloc(PC_COUNT, "fw att control roll nonfinite input");
} }
ECL_RollController::~ECL_RollController() ECL_RollController::~ECL_RollController()

View File

@ -58,9 +58,9 @@ ECL_YawController::ECL_YawController() :
_rate_error(0.0f), _rate_error(0.0f),
_rate_setpoint(0.0f), _rate_setpoint(0.0f),
_bodyrate_setpoint(0.0f), _bodyrate_setpoint(0.0f),
_coordinated_min_speed(1.0f) _coordinated_min_speed(1.0f),
_nonfinite_input_perf(perf_alloc(PC_COUNT, "fw att control yaw nonfinite input"))
{ {
perf_alloc(PC_COUNT, "fw att control yaw nonfinite input");
} }
ECL_YawController::~ECL_YawController() ECL_YawController::~ECL_YawController()