15#include "../../Utils/Filter/RunningAverageFilter.h"
Smooths data values using a weighted running average.
A class for managing the SHARP GP2Y distance sensor.
float distance
Current distance measurement.
RunningAverageFilter< 25 > rAF
Running average filter for smoothing sensor readings.
float Update()
Updates the distance measurement by reading the sensor.
uint8_t pin
Analog pin connected to the sensor.
float GetDistance()
Retrieves the current distance measurement.
float ReadingToDistance(uint8_t reading)
Converts a raw sensor reading to a distance value.