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

#include <ObstacleDetectorWithServo.h>

Public Attributes

PinName sensorPin
 
Servo::Config servoConfig
 
int thresholdDistance
 
int moveFromObstacle
 
float encoderAvoidDistance
 
bool isDeactivate = false
 

Static Public Attributes

static constexpr int IMAGE_SIZE = 30
 
static constexpr int SERVO_MAX_RANGE_DEGREE = 180
 

Member Data Documentation

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: