logger: add rate factor to slow logging down

This is required for the Mantis to reduce the log streaming rate.
This commit is contained in:
Julian Oes
2021-10-15 10:26:54 +02:00
committed by Daniel Agar
parent f3a278dce5
commit ca1fabf80a
4 changed files with 20 additions and 5 deletions
+2
View File
@@ -393,6 +393,8 @@ bool LoggedTopics::add_topic(const orb_metadata *topic, uint16_t interval_ms, ui
bool LoggedTopics::add_topic(const char *name, uint16_t interval_ms, uint8_t instance, bool optional)
{
interval_ms /= _rate_factor;
const orb_metadata *const *topics = orb_get_topics();
bool success = false;