|
SmartVehicle-Basis
SmartFactory
|
Class LineDetector handels the Line detection-System. More...
#include <LineDetector.h>
Public Member Functions | |
| LineDetector (const int sensorPin_0, const int sensorPin_1, const int sensorPin_2, const int sensorPin_3, const int sensorPin_4) | |
| Construct a new Line Detector object. More... | |
| const int | deviation () |
| Recognise deviation from vehicle to line. More... | |
Private Attributes | |
| const int | pSensorPinLL |
| Pin Sensor Far Left. More... | |
| const int | pSensorPinL |
| Pin Sensor Left. More... | |
| const int | pSensorPinM |
| Pin Sensor Middle. More... | |
| const int | pSensorPinR |
| Pin Sensor Right. More... | |
| const int | pSensorPinRR |
| Pin Sensor Far Right. More... | |
| int | pSensorLL |
| Value Sensor Far Left. More... | |
| int | pSensorL |
| Value Sensor Left. More... | |
| int | pSensorM |
| Value Sensor Middle. More... | |
| int | pSensorR |
| Value Sensor Right. More... | |
| int | pSensorRR |
| Value Sensor Far Right. More... | |
Class LineDetector handels the Line detection-System.
Definition at line 24 of file LineDetector.h.
| LineDetector::LineDetector | ( | const int | sensorPin_0, |
| const int | sensorPin_1, | ||
| const int | sensorPin_2, | ||
| const int | sensorPin_3, | ||
| const int | sensorPin_4 | ||
| ) |
Construct a new Line Detector object.
| sensorPin_0 | - Pin Sensor Far Left |
| sensorPin_1 | - Pin Sensor Left |
| sensorPin_2 | - Pin Sensor Middle |
| sensorPin_3 | - Pin Sensor Right |
| sensorPin_4 | - Pin Sensor Far Right |
Definition at line 17 of file LineDetector.cpp.
| const int LineDetector::deviation | ( | ) |
Recognise deviation from vehicle to line.
Definition at line 34 of file LineDetector.cpp.
|
private |
Pin Sensor Far Left.
Definition at line 56 of file LineDetector.h.
|
private |
Pin Sensor Left.
Definition at line 57 of file LineDetector.h.
|
private |
Pin Sensor Middle.
Definition at line 58 of file LineDetector.h.
|
private |
Pin Sensor Right.
Definition at line 59 of file LineDetector.h.
|
private |
Pin Sensor Far Right.
Definition at line 60 of file LineDetector.h.
|
private |
Value Sensor Far Left.
Definition at line 62 of file LineDetector.h.
|
private |
Value Sensor Left.
Definition at line 63 of file LineDetector.h.
|
private |
Value Sensor Middle.
Definition at line 64 of file LineDetector.h.
|
private |
Value Sensor Right.
Definition at line 65 of file LineDetector.h.
|
private |
Value Sensor Far Right.
Definition at line 66 of file LineDetector.h.