a
CSafetyStopFunction Class Reference
It is used for deciding whether to activate safetyu stop depending on distance sensors reading. More...
#include <safetystopfunction.hpp>
Public Member Functions | |
CSafetyStopFunction (C_IR_DistanceSensorDriver &f_senLeftFront, C_IR_DistanceSensorDriver &f_senMidLeftFront, C_IR_DistanceSensorDriver &f_senCenterFront, C_IR_DistanceSensorDriver &f_senMidRightFront, C_IR_DistanceSensorDriver &f_senRightFront) | |
Construct a new CSafetyStopFunction::CSafetyStopFunction object. | |
~CSafetyStopFunction () | |
Class destructor. | |
bool | isSafetyStopActive (float f_speed, float f_angle) |
Function for activating safety stop. | |
Static Public Member Functions | |
static void | staticSerialCallback (void *obj, char const *a, char *b) |
Serial callback method. |
Detailed Description
It is used for deciding whether to activate safetyu stop depending on distance sensors reading.
Definition at line 25 of file safetystopfunction.hpp.
Constructor & Destructor Documentation
CSafetyStopFunction | ( | C_IR_DistanceSensorDriver & | f_senLeftFront, |
C_IR_DistanceSensorDriver & | f_senMidLeftFront, | ||
C_IR_DistanceSensorDriver & | f_senCenterFront, | ||
C_IR_DistanceSensorDriver & | f_senMidRightFront, | ||
C_IR_DistanceSensorDriver & | f_senRightFront | ||
) |
Construct a new CSafetyStopFunction::CSafetyStopFunction object.
- Parameters:
-
f_senLeftFront sensor mounteed on left front part f_senMidLeftFront sensor mounteed on mid left front part f_senCenterFront sensor mounted on middle front part f_senMidRightFront sensor mounteed on mid right front part f_senRightFront sensor mounteed on right front part
Definition at line 24 of file safetystopfunction.cpp.
~CSafetyStopFunction | ( | ) |
Member Function Documentation
bool isSafetyStopActive | ( | float | f_speed, |
float | f_angle | ||
) |
Function for activating safety stop.
- Parameters:
-
f_speed f_angle
Definition at line 58 of file safetystopfunction.cpp.
void staticSerialCallback | ( | void * | obj, |
char const * | a, | ||
char * | b | ||
) | [static] |
Serial callback method.
Serial callback attaching serial callback to CSafetyStopFunction object
- Parameters:
-
obj CSafetyStopFunction controller object a string to read data from b string to write data to
Definition at line 109 of file safetystopfunction.cpp.
Generated on Tue Jul 12 2022 22:40:51 by 1.7.2