Skip to content

Commit

Permalink
Make FrequencyStatus' name configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsHaukeBussas-TomTom committed Jul 16, 2018
1 parent 4c077bb commit f7224d1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions diagnostic_updater/include/diagnostic_updater/update_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,17 @@ namespace diagnostic_updater
clear();
}

/**
* \brief Constructs a FrequencyStatus class with the given parameters.
*/

FrequencyStatus(const FrequencyStatusParam &params, const std::string name) :
DiagnosticTask(name), params_(params),
times_(params_.window_size_), seq_nums_(params_.window_size_)
{
clear();
}

/**
* \brief Resets the statistics.
*/
Expand Down

0 comments on commit f7224d1

Please sign in to comment.