SmartVehicle-Basis
SmartFactory
EnvironmentDetection Class Reference

Provides an Interface for all Enviroment detection Systems of the Vehilce. More...

#include <EnvironmentDetection.h>

Collaboration diagram for EnvironmentDetection:

Public Member Functions

 EnvironmentDetection ()
 Construct a new Environment Detection object. More...
 
const int Linedeviation ()
 Recognise deviation from vehicle to line. More...
 

Private Attributes

LineDetector pLinedetector = LineDetector(PIN_SENSOR_0, PIN_SENSOR_1, PIN_SENSOR_2, PIN_SENSOR_3, PIN_SENSOR_4)
 Linedetector Object with 5 Sensors. More...
 

Detailed Description

Provides an Interface for all Enviroment detection Systems of the Vehilce.

Definition at line 30 of file EnvironmentDetection.h.

Constructor & Destructor Documentation

◆ EnvironmentDetection()

EnvironmentDetection::EnvironmentDetection ( )
inline

Construct a new Environment Detection object.

Definition at line 37 of file EnvironmentDetection.h.

Member Function Documentation

◆ Linedeviation()

const int EnvironmentDetection::Linedeviation ( )
inline

Recognise deviation from vehicle to line.

-10 Degree turn left
10 Degree turn right
180 full Line detected
200 Line Lost or ErrorValues

4 Line is on the right side
0 Line is in the middle
-4 Line is on the left side

Returns
const int - deviation from middle sensor

Definition at line 53 of file EnvironmentDetection.h.

Member Data Documentation

◆ pLinedetector

LineDetector EnvironmentDetection::pLinedetector = LineDetector(PIN_SENSOR_0, PIN_SENSOR_1, PIN_SENSOR_2, PIN_SENSOR_3, PIN_SENSOR_4)
private

Linedetector Object with 5 Sensors.

Definition at line 62 of file EnvironmentDetection.h.


The documentation for this class was generated from the following file: