mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-12 16:10:35 +08:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user