This activity is a continuation of what we did during SciBorgs part 2. Another assignment that we had to code was for our SciBorgs to follow the SciBorg in front of it. This wasn't very difficult; my partner and I decided to use if else statements given the value from the ultrasonic sensor to determine the speed of our SciBorg. Another idea Amy had was to have the speed of the SciBorg be a proportional to the ultrasonic sensor value, so that the line of code would read: m1.SetFixedDrive( someConstant * value +/- someUknownValue). This is a really cool idea, but would take a lot more experimenting to get right.
Here's a video of SciBorg following another SciBorg. Thanks again to Jennifer and Rachel who let us borrow their robot for the video! Our robot is the blue one in the back.
No comments:
Post a Comment