NXPCUP-libary
Library for car's control board on NXPCUP competition based on the Mbed framework.
Public Attributes | List of all members
nxpcup::ObstacleDetector::Config Struct Reference

#include <ObstacleDetector.h>

Public Attributes

PinName leftSensorPin
 
PinName rightSensorPin
 
int thresholdDistance
 
int moveFromObstacle
 
float encoderAvoidDistance
 
bool isDeactivate = false
 

Member Data Documentation

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


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