19 virtual void on_update(TinyGPSPlus &tiny_gps) = 0;
39 this->listeners_.push_back(listener);
44 void update()
override;
50 float longitude_ = -1;
63 bool has_time_{
false};
65 std::vector<GPSListener *> listeners_{};
TinyGPSPlus & get_tiny_gps()
void set_altitude_sensor(sensor::Sensor *altitude_sensor)
void set_course_sensor(sensor::Sensor *course_sensor)
This class simplifies creating components that periodically check a state.
float get_setup_priority() const override
void set_latitude_sensor(sensor::Sensor *latitude_sensor)
void set_speed_sensor(sensor::Sensor *speed_sensor)
TinyGPSPlus & get_tiny_gps()
void register_listener(GPSListener *listener)
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
void set_longitude_sensor(sensor::Sensor *longitude_sensor)
Implementation of SPI Controller mode.
void set_satellites_sensor(sensor::Sensor *satellites_sensor)
virtual void on_update(TinyGPSPlus &tiny_gps)=0
Base-class for all sensors.