jbotrace.base
Class DriverCommand

java.lang.Object
  |
  +--jbotrace.base.DriverCommand

public class DriverCommand
extends java.lang.Object

Description: DriverCommand holds the commands a driver can give in one timestep.


Constructor Summary
DriverCommand()
          Creates a new "empty" DriverCommand
 
Method Summary
 double getBrake()
          Returns the current acceleration in this command
 double getSteeringAngle()
          Returns the current wanted steering angle.
 double getThrottle()
          Returns the current acceleration in this command
 void setBrake(double brake)
          Sets the brake
 void setSteeringAngle(double steeringAngle)
          Sets the wanted(!)
 void setThrottle(double throttle)
          Sets the throttle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DriverCommand

public DriverCommand()
Creates a new "empty" DriverCommand

Method Detail

getBrake

public double getBrake()
Returns the current acceleration in this command


getSteeringAngle

public double getSteeringAngle()
Returns the current wanted steering angle.


getThrottle

public double getThrottle()
Returns the current acceleration in this command


setBrake

public void setBrake(double brake)
Sets the brake


setSteeringAngle

public void setSteeringAngle(double steeringAngle)
Sets the wanted(!) angle of the steering.


setThrottle

public void setThrottle(double throttle)
Sets the throttle