Home > other >  51 tracking car, please write the general idea of program
51 tracking car, please write the general idea of program

Time:09-24


I want to make up a program in c language, make the car run into the first when you turn right, turn right, and met the second turn right turn right not

how should write programs?Now the program in to two red circle marked place, the car will turn right

CodePudding user response:

The building Lord through what sensor to judge turn left turn right and go straight?

CodePudding user response:

The infrared tracking module, the car chassis four infrared small lights

CodePudding user response:

A flag bit in the defined check_flag detect the number of black line is used to record the position and logo to 1 turn right, go straight for 2,

CodePudding user response:

reference RGJOIDG * ^ 2 floor response:
infrared tracking module, the car chassis with four infrared small lights

3 floor method can draw lessons from, if there is a black line starting point, the count to 2 right, 3 when performing,
  • Related