a
ProximityPublisher< C_Sensor, Nr_Senrsor > Class Template Reference
ProximityPublisher class. More...
#include <sensorpublisher.hpp>
Inherits task::CTask.
Public Member Functions | |
ProximityPublisher (uint32_t, SensorArrayT, Serial &) | |
Constructor for the CEncoderFilter class. | |
virtual void | run () |
Run method. | |
Static Public Member Functions | |
static void | staticSerialCallback (void *obj, char const *a, char *b) |
Serial callback method. | |
Protected Member Functions | |
void | _run () |
Method called each f_period. | |
void | serialCallback (char const *a, char *b) |
Serial callback actions. |
Detailed Description
template<class C_Sensor, uint Nr_Senrsor>
class examples::sensors::ProximityPublisher< C_Sensor, Nr_Senrsor >
ProximityPublisher class.
It inherits class task::CTask. It is used for publishing proximity sensor values.
Definition at line 35 of file sensorpublisher.hpp.
Constructor & Destructor Documentation
ProximityPublisher | ( | uint32_t | f_period, |
SensorArrayT | f_sensors, | ||
Serial & | f_serial | ||
) |
Constructor for the CEncoderFilter class.
Constructor method
- Parameters:
-
f_period period value f_sensors sensor array f_serial reference to the serial object
Definition at line 12 of file sensorpublisher.inl.
Member Function Documentation
void _run | ( | void | ) | [protected, virtual] |
void run | ( | ) | [virtual, inherited] |
void serialCallback | ( | char const * | a, |
char * | b | ||
) | [protected] |
Serial callback actions.
Serial callback
- Parameters:
-
a string to read data from b string to write data to
Definition at line 47 of file sensorpublisher.inl.
void staticSerialCallback | ( | void * | obj, |
char const * | a, | ||
char * | b | ||
) | [static] |
Serial callback method.
Serial callback attaching serial callback to controller object
- Parameters:
-
obj PID controller object a string to read data from b string to write data to
Definition at line 32 of file sensorpublisher.inl.
Generated on Tue Jul 12 2022 22:40:51 by 1.7.2