mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-14 04:31:37 +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:
@@ -100,6 +100,8 @@ public:
|
||||
const RequestedSubscriptionArray &subscriptions() const { return _subscriptions; }
|
||||
int numMissionSubscriptions() const { return _num_mission_subs; }
|
||||
|
||||
void set_rate_factor(float rate_factor) { _rate_factor = rate_factor; }
|
||||
|
||||
private:
|
||||
|
||||
/**
|
||||
@@ -175,6 +177,7 @@ private:
|
||||
|
||||
RequestedSubscriptionArray _subscriptions;
|
||||
int _num_mission_subs{0};
|
||||
float _rate_factor{1.0f};
|
||||
};
|
||||
|
||||
} //namespace logger
|
||||
|
||||
Reference in New Issue
Block a user