diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-04-27 12:45:02 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-04-27 12:45:02 +0200 |
commit | 96ddea082690cd826cee10c4c00c95b2f87caf90 (patch) | |
tree | 652747d6bc5115fe593f8bff9e31438031a253f4 /src/modules/fw_pos_control_l1/mtecs/mTecs.h | |
parent | 811dd12ac56396d752def4070288fc74a7dd1abb (diff) | |
download | px4-firmware-96ddea082690cd826cee10c4c00c95b2f87caf90.tar.gz px4-firmware-96ddea082690cd826cee10c4c00c95b2f87caf90.tar.bz2 px4-firmware-96ddea082690cd826cee10c4c00c95b2f87caf90.zip |
Introduce debug option for mTECS and silence it as default
Diffstat (limited to 'src/modules/fw_pos_control_l1/mtecs/mTecs.h')
-rw-r--r-- | src/modules/fw_pos_control_l1/mtecs/mTecs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/fw_pos_control_l1/mtecs/mTecs.h b/src/modules/fw_pos_control_l1/mtecs/mTecs.h index 393dd294d..fab4b161a 100644 --- a/src/modules/fw_pos_control_l1/mtecs/mTecs.h +++ b/src/modules/fw_pos_control_l1/mtecs/mTecs.h @@ -121,6 +121,11 @@ protected: bool _dtCalculated; /**< True if dt has been calculated in this iteration */ int _counter; + bool _debug; ///< Set true to enable debug output + + + static void debug_print(const char *fmt, va_list args); + void debug(const char *fmt, ...); /* * Measure and update the time step dt if this was not already done in the current iteration |