RoboidControl-cpp/DiscreteAngle.h
Pascal Serrarens 0468031b4b Bug fix
2024-03-05 10:00:56 +01:00

18 lines
355 B
C++

#ifndef DISCRETEANGLE_H
#define DISCRETEANGLE_H
#include "Range.h"
// A fixed angle between (-180..180]
template <typename T> class AngleUsing : RangeUsing<T> {
public:
AngleUsing(T sourceValue);
float ToFloat();
inline T GetValue() { return this->value; }
};
#endif
template <typename T> inline float AngleUsing<T>::ToFloat() { return 0.0f; }