a
CDistanceSensors< T > Class Template Reference
It is used for reading the attached distance sensors. More...
#include <distancesensors.hpp>
Inherits task::CTask.
Public Member Functions | |
CDistanceSensors (uint32_t f_period, float f_baseTick, T &f_sensor_list) | |
Class constructor. | |
~CDistanceSensors () | |
Class destructor. | |
void | ReadCallback (void) |
Read callback method. | |
void | _run (void) |
Method called each f_period. | |
virtual void | run () |
Run method. |
Detailed Description
template<class T>
class CDistanceSensors< T >
It is used for reading the attached distance sensors.
Definition at line 28 of file distancesensors.hpp.
Constructor & Destructor Documentation
CDistanceSensors | ( | uint32_t | f_period, |
float | f_baseTick, | ||
T & | f_sensor_list | ||
) |
Class constructor.
- Parameters:
-
f_period sensor reading period f_baseTick base tick period, in seconds f_sensor_list the list of sensor objects
Definition at line 9 of file distancesensors.inl.
~CDistanceSensors | ( | ) |
Member Function Documentation
void _run | ( | void | ) | [virtual] |
void ReadCallback | ( | void | ) |
Read callback method.
Callback for reading the value of one distance sensor
Definition at line 41 of file distancesensors.inl.
void run | ( | ) | [virtual, inherited] |
Generated on Tue Jul 12 2022 22:40:51 by 1.7.2