This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//It is a left side wall follower. | |
#include <AFMotor.h> | |
#include <SR04.h> | |
AF_DCMotor motor3(3, MOTOR34_64KHZ); // Define motor #3, 64KHz pwm | |
AF_DCMotor motor4(4, MOTOR34_64KHZ); // Define motor #4, 64KHz pwm | |
int WF_LEFT_US_SENSOR_TRIG = 18; | |
int WF_LEFT_US_SENSOR_ECHO = 17; |