To make the Finch move and turn, you can use the setWheelVelocities() method. This method requires three parameters. The first controls the speed of the Finch’s left wheel, the second controls the speed of the right wheel, and the third sets the time in milliseconds that the Finch should move.
Resources available for teachers. Login/Get Access
Create a new file named “FinchForward.java” and try out the command shown above. It should make the Finch move forward for 1 second.
Try changing the time that the Finch should move. Can you make the Finch move forward for 5 seconds?
Write a program that makes the Finch move forward, then backward, then forward, and then backward again. The robot should pause for half a second between each movement.
Write a program that moves the Finch at five different speeds. The Finch should move for 4 seconds total.
Write a program that asks the user for the Finch speed and then moves the Finch at that speed.
Write a program that asks the user how many seconds the Finch should move and then moves the Finch forward for that number of seconds. The Finch should also speak the number of seconds that it is moving.