ZotBins Core
Loading...
Searching...
No Matches
DistanceBuffer.hpp
1// /**
2// * @file MockDistance.hpp
3// * @brief Mock distance class that inherits from IDistance interface class. Used for unit testing.
4// * @version 0.1
5// * @date 2022-05-11
6// */
7
8// #include "Distance.hpp"
9// #include <cstdint>
10// #include <stdlib.h>
11// #include <vector>
12// #include <driver/gpio.h>
13
14// namespace Fullness
15// {
16// class DistanceBuffer final : public Distance
17// {
18
19// public:
20// /**
21// * @brief Create buffer object containing a window of distance readings from the sensor
22// */
23// DistanceBuffer();
24
25// /**
26// * @brief Pushes a distance value to the buffer
27// * @param int32_t Distance in millimeters
28// */
29// void recordDistance(float distance);
30
31// /**
32// * @brief Clears the distance buffer
33// */
34// void clearBuffer();
35
36// private:
37// std::vector<int32_t> buffer;
38
39// };
40// }