orbotix.robot.base
Class RollCommand

java.lang.Object
  extended by orbotix.robot.base.DeviceMessage
      extended by orbotix.robot.base.DeviceCommand
          extended by orbotix.robot.base.RollCommand
All Implemented Interfaces:
android.os.Parcelable

public final class RollCommand
extends DeviceCommand


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
android.os.Parcelable.Creator
 
Field Summary
static android.os.Parcelable.Creator CREATOR
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
RollCommand(float heading, float velocity, boolean stop)
           
 
Method Summary
 int describeContents()
           
static float getBoostReturnVelocity()
           
static float getCurrentHeading()
           
static float getCurrentVelocity()
           
 float getHeading()
           
static float getStickyVelocity()
           
 float getVelocity()
           
static boolean isVelocitySticky()
           
static void resendCurrent(Robot robot)
           
static void sendBoostReturnCommand(Robot robot)
           
static void sendCommand(Robot robot, float heading, float velocity)
           
static void sendCommand(Robot robot, float heading, float velocity, boolean stop)
           
static void sendStop(Robot robot)
           
static void setBoostReturnVelocity(float boostReturnVelocity)
           
static void setCurrentVelocity(float speed)
           
 boolean stop()
           
 void writeToParcel(android.os.Parcel dest, int flags)
           
 
Methods inherited from class orbotix.robot.base.DeviceMessage
getTimeStamp
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATOR

public static final android.os.Parcelable.Creator CREATOR
Constructor Detail

RollCommand

public RollCommand(float heading,
                   float velocity,
                   boolean stop)
Method Detail

sendCommand

public static void sendCommand(Robot robot,
                               float heading,
                               float velocity)

sendCommand

public static void sendCommand(Robot robot,
                               float heading,
                               float velocity,
                               boolean stop)

sendStop

public static void sendStop(Robot robot)

resendCurrent

public static void resendCurrent(Robot robot)

sendBoostReturnCommand

public static void sendBoostReturnCommand(Robot robot)

setBoostReturnVelocity

public static void setBoostReturnVelocity(float boostReturnVelocity)

getBoostReturnVelocity

public static float getBoostReturnVelocity()

isVelocitySticky

public static boolean isVelocitySticky()

getStickyVelocity

public static float getStickyVelocity()

getCurrentHeading

public static float getCurrentHeading()

getCurrentVelocity

public static float getCurrentVelocity()

setCurrentVelocity

public static void setCurrentVelocity(float speed)

getHeading

public float getHeading()

getVelocity

public float getVelocity()

stop

public boolean stop()

describeContents

public int describeContents()

writeToParcel

public void writeToParcel(android.os.Parcel dest,
                          int flags)
Specified by:
writeToParcel in interface android.os.Parcelable
Overrides:
writeToParcel in class DeviceMessage