mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 04:43:36 +08:00
FW att ctrl: Reduce perf counters
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright (c) 2013-2015 PX4 Development Team. All rights reserved.
|
* Copyright (c) 2013-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
|
||||||
@@ -376,9 +376,14 @@ FixedwingAttitudeControl::FixedwingAttitudeControl() :
|
|||||||
_attitude_setpoint_id(0),
|
_attitude_setpoint_id(0),
|
||||||
|
|
||||||
/* performance counters */
|
/* performance counters */
|
||||||
_loop_perf(perf_alloc(PC_ELAPSED, "fw att control")),
|
_loop_perf(perf_alloc(PC_ELAPSED, "fwa_dt")),
|
||||||
_nonfinite_input_perf(perf_alloc(PC_COUNT, "fw att control nonfinite input")),
|
#if 0
|
||||||
_nonfinite_output_perf(perf_alloc(PC_COUNT, "fw att control nonfinite output")),
|
_nonfinite_input_perf(perf_alloc(PC_COUNT, "fwa_nani")),
|
||||||
|
_nonfinite_output_perf(perf_alloc(PC_COUNT, "fwa_nano")),
|
||||||
|
#else
|
||||||
|
_nonfinite_input_perf(nullptr),
|
||||||
|
_nonfinite_output_perf(nullptr),
|
||||||
|
#endif
|
||||||
/* states */
|
/* states */
|
||||||
_setpoint_valid(false),
|
_setpoint_valid(false),
|
||||||
_debug(false),
|
_debug(false),
|
||||||
|
|||||||
Reference in New Issue
Block a user