|
Fang-Robotics-MCB
Fang Robotics Team Codebase
|
#include <analog_current_sensor.hpp>


Classes | |
| struct | Config |
Public Member Functions | |
| AnalogCurrentSensor (const Config &config) | |
| float | getCurrentMa () const override |
| void | update () override |
Linear analog current sensor that reads current from a sensor attached to an analog pin, applying a moving average to data read each time getCurrentMa is called. As such, for optimal performance, call getCurrentMa() periodically at some consistent rate.
| tap::communication::sensors::current::AnalogCurrentSensor::AnalogCurrentSensor | ( | const Config & | config | ) |
|
overridevirtual |
Implements tap::communication::sensors::current::CurrentSensorInterface.
|
overridevirtual |
Function that one implements that reads data from the sensor and performs any filtering as required.
Implements tap::communication::sensors::SensorInterface.