diff --git a/diagnostic_updater/include/diagnostic_updater/update_functions.h b/diagnostic_updater/include/diagnostic_updater/update_functions.h index c4921086e..6ba7c1191 100644 --- a/diagnostic_updater/include/diagnostic_updater/update_functions.h +++ b/diagnostic_updater/include/diagnostic_updater/update_functions.h @@ -123,6 +123,17 @@ namespace diagnostic_updater clear(); } + /** + * \brief Constructs a FrequencyStatus class with the given parameters. + */ + + FrequencyStatus(const FrequencyStatusParam ¶ms, const std::string name) : + DiagnosticTask(name), params_(params), + times_(params_.window_size_), seq_nums_(params_.window_size_) + { + clear(); + } + /** * \brief Resets the statistics. */