How can I make the code work with the claw bot to do the line following? after the line ends, robot will keep move forward until the sonar sensor detect the distance to the wall(less than 30cm), then it stops use lineTrackForTime command to make the robot follow the line after robot out of start area, keep moving forward until meet the dark line move the robot out of the start area, go straight and turn right set a turnright function, will use it with waitInMilliseconds command later set a forward function, will use it with waitInMilliseconds command later already set the line follower sensors and sonar sensor. *!!Code automatically generated by 'ROBOTC' configuration wizard !!*// #pragma config(RenamedStdModelSensor, in3, rightline) #pragma config(RenamedStdModelSensor, in2, centerline) #pragma config(RenamedStdModelSensor, in1, leftline) #pragma config(StandardModel, "RVW SQUAREBOT") The following code works on the square bot but not on the claw bot. However when I switch to square robot, the lineTrackForTime command worked. I am trying to use lineTrackForTime command on claw robot but it seems like the robot just run over the line and can't detect it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |