orbotix.robot.base
Class RollCommand
java.lang.Object
orbotix.robot.base.DeviceMessage
orbotix.robot.base.DeviceCommand
orbotix.robot.base.RollCommand
- All Implemented Interfaces:
- android.os.Parcelable
public final class RollCommand
- extends DeviceCommand
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CREATOR
public static final android.os.Parcelable.Creator CREATOR
RollCommand
public RollCommand(float heading,
float velocity,
boolean stop)
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