20 #include <Adafruit_MotorShield.h> 23 #include "LogConfiguration.h" 62 Drive(
const int MotorPortRight,
const int MotorPortLeft);
96 Adafruit_MotorShield
pAFMS = Adafruit_MotorShield();
Direction pWayVehicle
Actual movingdirection Forward or Backward.
Direction
Direction enum holds all possible directions.
String decodeDirection(Direction direction)
Decodes the Direction-Enum and returns a description.
int pSpeedRight
actual Speed of right Motor
void drive(Direction direction, unsigned int speed)
Drive straight Forwards or Backwards.
Adafruit_DCMotor * pMotorRight
Pointer to right Motor Obj.
Class Drive handels the Driving-System and provides basic functions.
Drive(const int MotorPortRight, const int MotorPortLeft)
Construct a new Drive object https://www.adafruit.com/product/2927.
void stop()
Power of the Motor. Does not apply breaking.
void turn(Direction direction, unsigned int speed)
Turn left or right. Speed will add to one Motor's actual speed and substract from the others depenig ...
int pSpeedLeft
actual Speed of left Motor
Adafruit_MotorShield pAFMS
void turnonpoint(Direction direction, unsigned int speed)
Turn on Point Drive on Motor Forward and the other Backward with the given speed.
Adafruit_DCMotor * pMotorLeft
Pointer to left Motor Obj.