Question: How to make a finch robot do a square, triangle and figure 8 motion using java coding. I having a hard time this is what
How to make a finch robot do a square, triangle and figure 8 motion using java coding. I having a hard time this is what i have so far.
package simpleOutput;
import edu.cmu.ri.createlab.terk.robot.finch.Finch; /** * Write a description of class Shapes here. * * @author (your name) * @version (a version number or a date) */ public class Shapes { { Finch myFinch = new Finch(); myFinch.setWheelVelocities(80,-100,1000); myFinch.setWheelVelocities(255,255,1000); myFinch.setWheelVelocities(80,-100,1000); myFinch.setWheelVelocities(255,255,1000); myFinch.setWheelVelocities(80,-100,1000); myFinch.setWheelVelocities(255,255,1000); myFinch.setWheelVelocities(80,-100,1000); myFinch.setWheelVelocities(255,255,1000); myFinch.setWheelVelocities(80,-100,1000);
myFinch.quit(); System.exit(0);
} }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
