orbotix.robot.base
Class RCDriveAlgorithm

java.lang.Object
  extended by orbotix.robot.base.DriveAlgorithm
      extended by orbotix.robot.base.RCDriveAlgorithm

public class RCDriveAlgorithm
extends DriveAlgorithm

Created by IntelliJ IDEA. User: brandon Date: 7/28/11 Time: 3:48 PM To change this template use File | Settings | File Templates.


Nested Class Summary
 
Nested classes/interfaces inherited from class orbotix.robot.base.DriveAlgorithm
DriveAlgorithm.OnConvertListener
 
Field Summary
 
Fields inherited from class orbotix.robot.base.DriveAlgorithm
adjustedHeading, deadZoneDelta, heading, headingOffset, MAX_COORDINATES, speed, speedScale, stopPosition
 
Constructor Summary
RCDriveAlgorithm()
           
 
Method Summary
 void convert(double x, double y, double z)
          Converts the input coordinates into a heading and speed.
 
Methods inherited from class orbotix.robot.base.DriveAlgorithm
setOnConvertListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RCDriveAlgorithm

public RCDriveAlgorithm()
Method Detail

convert

public void convert(double x,
                    double y,
                    double z)
Description copied from class: DriveAlgorithm
Converts the input coordinates into a heading and speed. Input coordinates are dependent on the method used, for example, they can be accelerometer coordinates or a point in a view.

Specified by:
convert in class DriveAlgorithm
Parameters:
x - First coordinate in the input coordinates.
y - Second coordinate in the input coordinates.
z - Third coordinate in the input coordinates.