a

Dependencies:   mbed mbed-rtos

Embed: (wiki syntax)

« Back to documentation index

ProximityPublisher< C_Sensor, Nr_Senrsor > Class Template Reference

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_periodperiod value
f_sensorssensor array
f_serialreference to the serial object

Definition at line 12 of file sensorpublisher.inl.


Member Function Documentation

void _run ( void   ) [protected, virtual]

Method called each f_period.

Implements CTask.

Definition at line 64 of file sensorpublisher.inl.

void run (  ) [virtual, inherited]

Run method.

Destructor method

Definition at line 46 of file taskmanager.cpp.

void serialCallback ( char const *  a,
char *  b 
) [protected]

Serial callback actions.

Serial callback

Parameters:
astring to read data from
bstring 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:
objPID controller object
astring to read data from
bstring to write data to

Definition at line 32 of file sensorpublisher.inl.