#include <ObstacleDetectorWithServo.h>
float nxpcup::ObstacleDetectorWithServo::Config::encoderAvoidDistance |
when the detector find obstacle, the distance which must robot go then return to center of road and again search for obstacle
constexpr int nxpcup::ObstacleDetectorWithServo::Config::IMAGE_SIZE = 30 |
|
static |
bool nxpcup::ObstacleDetectorWithServo::Config::isDeactivate = false |
deactivate the detector -> still check the obstacle, but not correct the robot path
int nxpcup::ObstacleDetectorWithServo::Config::moveFromObstacle |
how far from detected obstacle go - lower value -> closer to line detected
PinName nxpcup::ObstacleDetectorWithServo::Config::sensorPin |
analog in pin for optical obstacle sensor
constexpr int nxpcup::ObstacleDetectorWithServo::Config::SERVO_MAX_RANGE_DEGREE = 180 |
|
static |
Servo::Config nxpcup::ObstacleDetectorWithServo::Config::servoConfig |
configuration for servo which move with sensor
int nxpcup::ObstacleDetectorWithServo::Config::thresholdDistance |
value from optical sensor that trigger the detector
The documentation for this struct was generated from the following file: