Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
scalarValueSensor.hpp
Go to the documentation of this file.
1#ifndef SCALARVALUESENSOR_HPP
2#define SCALARVALUESENSOR_HPP
3
4#include "configParser.hpp"
5#include "sensorBase.hpp"
6#include "types.hpp"
7#include <queue>
8#include <random>
9
10class ScalarValueSensor : public SensorBase<StampedScalar>
11{
12public:
13 ScalarValueSensor(double rate, double deadTime);
14
15 void readConfig(ConfigElement& config);
16
17 bool RunTick(StampedScalar& in, double time);
18
19 StampedScalar applyError(StampedScalar input);
20
21private:
22 double error_mean;
24};
25
26#endif /* SCALARVALUESENSOR_HPP */
bool RunTick(StampedScalar &in, double time)
StampedScalar applyError(StampedScalar input)
void readConfig(ConfigElement &config)