|
NXPCUP-libary
Library for car's control board on NXPCUP competition based on the Mbed framework.
|
#include <ObstacleDetector.h>
Public Attributes | |
| PinName | leftSensorPin |
| PinName | rightSensorPin |
| int | thresholdDistance |
| int | moveFromObstacle |
| float | encoderAvoidDistance |
| bool | isDeactivate = false |
| float nxpcup::ObstacleDetector::Config::encoderAvoidDistance |
when the detector find obstacle, the distance which must robot go then return to center of road and again search for obstacle
| bool nxpcup::ObstacleDetector::Config::isDeactivate = false |
deactivate the detector -> still check the obstacle, but not correct the robot path
| PinName nxpcup::ObstacleDetector::Config::leftSensorPin |
analog in pin for left optical obstacle sensor
| int nxpcup::ObstacleDetector::Config::moveFromObstacle |
how far from detected obstacle go - lower value -> closer to line detected
| PinName nxpcup::ObstacleDetector::Config::rightSensorPin |
analog in pin for right optical obstacle sensor
| int nxpcup::ObstacleDetector::Config::thresholdDistance |
value from optical sensor that trigger the detector
1.8.11