a

Dependencies:   mbed mbed-rtos

Embed: (wiki syntax)

« Back to documentation index

CSafetyStopFunction Class Reference

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_senLeftFrontsensor mounteed on left front part
f_senMidLeftFrontsensor mounteed on mid left front part
f_senCenterFrontsensor mounted on middle front part
f_senMidRightFrontsensor mounteed on mid right front part
f_senRightFrontsensor mounteed on right front part

Definition at line 24 of file safetystopfunction.cpp.

Class destructor.

Destructor method

Definition at line 50 of file safetystopfunction.cpp.


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

Definition at line 109 of file safetystopfunction.cpp.