"

2013 FRC Java API

"

tests
Class TestApp.Ball

java.lang.Object
  extended by tests.TestApp.Ball
Enclosing class:
TestApp

public static class TestApp.Ball
extends Object


Constructor Summary
TestApp.Ball()
          Creates a new instance of Ball
 
Method Summary
 double getOldX()
           
 double getV()
          Returns the ball velocity
 double getX()
          Returns the current position
 void setV(double v)
          Set the ball velocity.
 void setX(double x2)
          Sets the current position
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestApp.Ball

public TestApp.Ball()
Creates a new instance of Ball

Method Detail

getV

public double getV()
Returns the ball velocity

Returns:
The current velocity in units of LEDs / msec.

setV

public void setV(double v)
Set the ball velocity.

Parameters:
v - The new value for velocity

getX

public double getX()
Returns the current position

Returns:
The current position in units of LEDs.

setX

public void setX(double x2)
Sets the current position

Parameters:
x - The desired new position in units of LEDs

getOldX

public double getOldX()

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"