From b7b1c1428f672ccfec78e2e9ef4e2542a53f8821 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 14 Jan 2014 07:52:40 +0100 Subject: [PATCH] Fixed perf init --- .../fw_att_pos_estimator_main.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp b/src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp index 9ea4e93b82..dc05540631 100644 --- a/src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp +++ b/src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp @@ -251,13 +251,13 @@ FixedwingEstimator::FixedwingEstimator() : _local_pos_pub(-1), /* performance counters */ - _loop_perf(perf_alloc(PC_ELAPSED, "fw_att_pos_estimator")), - _perf_gyro(perf_alloc(PC_ELAPSED, "fw_ekf_gyro_upd")), - _perf_accel(perf_alloc(PC_ELAPSED, "fw_ekf_accel_upd")), - _perf_mag(perf_alloc(PC_ELAPSED, "fw_ekf_mag_upd")), - _perf_gps(perf_alloc(PC_ELAPSED, "fw_ekf_gps_upd")), - _perf_baro(perf_alloc(PC_ELAPSED, "fw_ekf_baro_upd")), - _perf_airspeed(perf_alloc(PC_ELAPSED, "fw_ekf_aspd_upd")), + _loop_perf(perf_alloc(PC_COUNT, "fw_att_pos_estimator")), + _perf_gyro(perf_alloc(PC_COUNT, "fw_ekf_gyro_upd")), + _perf_accel(perf_alloc(PC_COUNT, "fw_ekf_accel_upd")), + _perf_mag(perf_alloc(PC_COUNT, "fw_ekf_mag_upd")), + _perf_gps(perf_alloc(PC_COUNT, "fw_ekf_gps_upd")), + _perf_baro(perf_alloc(PC_COUNT, "fw_ekf_baro_upd")), + _perf_airspeed(perf_alloc(PC_COUNT, "fw_ekf_aspd_upd")), /* states */ _initialized(false)