try to fix submodule

This commit is contained in:
2023-11-09 19:02:15 -05:00
parent c1d45aa443
commit deea94b076
366 changed files with 40228 additions and 2 deletions

View File

@@ -0,0 +1,31 @@
#ifndef GENERIC_SENSOR_LIB_H
#define GENERIC_SENSOR_LIB_H
#include "Arduino.h"
#include "../common/foc_utils.h"
#include "../common/time_utils.h"
#include "../common/base_classes/Sensor.h"
class GenericSensor: public Sensor{
public:
/**
GenericSensor class constructor
* @param readCallback pointer to the function reading the sensor angle
* @param initCallback pointer to the function initialising the sensor
*/
GenericSensor(float (*readCallback)() = nullptr, void (*initCallback)() = nullptr);
float (*readCallback)() = nullptr; //!< function pointer to sensor reading
void (*initCallback)() = nullptr; //!< function pointer to sensor initialisation
void init() override;
// Abstract functions of the Sensor class implementation
/** get current angle (rad) */
float getSensorAngle() override;
};
#endif