Skip to content
Snippets Groups Projects
Commit 4192fbcd authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

added getters for monitoring

parent dd75ce58
No related branches found
No related tags found
2 merge requests!28release after RAL,!27After 2nd RAL submission
...@@ -152,6 +152,10 @@ class ProcessorTrackerGnss : public ProcessorTrackerFeature ...@@ -152,6 +152,10 @@ class ProcessorTrackerGnss : public ProcessorTrackerFeature
void configure(SensorBasePtr _sensor) override; void configure(SensorBasePtr _sensor) override;
unsigned int getNTrackedSats() const;
unsigned int getNUntrackedSats() const;
protected: protected:
ParamsProcessorTrackerGnssPtr params_tracker_gnss_; ParamsProcessorTrackerGnssPtr params_tracker_gnss_;
...@@ -260,7 +264,7 @@ inline ProcessorTrackerGnss::~ProcessorTrackerGnss() ...@@ -260,7 +264,7 @@ inline ProcessorTrackerGnss::~ProcessorTrackerGnss()
// //
} }
inline void ProcessorTrackerGnss::configure(SensorBasePtr _sensor) inline void ProcessorTrackerGnss::configure(SensorBasePtr _sensor)
{ {
sensor_gnss_ = std::dynamic_pointer_cast<SensorGnss>(_sensor); sensor_gnss_ = std::dynamic_pointer_cast<SensorGnss>(_sensor);
assert(sensor_gnss_ != nullptr && "configured a processor tracker gnss with a wrong sensor"); assert(sensor_gnss_ != nullptr && "configured a processor tracker gnss with a wrong sensor");
...@@ -273,6 +277,16 @@ inline bool ProcessorTrackerGnss::correctFeatureDrift(const FeatureBasePtr _orig ...@@ -273,6 +277,16 @@ inline bool ProcessorTrackerGnss::correctFeatureDrift(const FeatureBasePtr _orig
return true; return true;
} }
inline unsigned int ProcessorTrackerGnss::getNTrackedSats() const
{
return known_features_last_.size();
}
inline unsigned int ProcessorTrackerGnss::getNUntrackedSats() const
{
return untracked_last_features_.size();
}
} // namespace wolf } // namespace wolf
#endif /* PROCESSOR_TRACKER_GNSS_H_ */ #endif /* PROCESSOR_TRACKER_GNSS_H_ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment