orbotix.robot.base
Class RawMotorCommand
java.lang.Object
orbotix.robot.base.DeviceMessage
orbotix.robot.base.DeviceCommand
orbotix.robot.base.RawMotorCommand
- All Implemented Interfaces:
- android.os.Parcelable
public class RawMotorCommand
- extends DeviceCommand
Nested classes/interfaces inherited from interface android.os.Parcelable |
android.os.Parcelable.Creator |
Fields inherited from interface android.os.Parcelable |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MOTOR_MODE_FORWARD
public static final int MOTOR_MODE_FORWARD
- See Also:
- Constant Field Values
MOTOR_MODE_REVERSE
public static final int MOTOR_MODE_REVERSE
- See Also:
- Constant Field Values
CREATOR
public static final android.os.Parcelable.Creator CREATOR
RawMotorCommand
public RawMotorCommand(int leftMode,
int leftSpeed,
int rightMode,
int rightSpeed)
RawMotorCommand
public RawMotorCommand(android.os.Parcel source)
sendCommand
public static void sendCommand(Robot robot,
int leftMode,
int leftSpeed,
int rightMode,
int rightSpeed)
getLeftMode
public int getLeftMode()
getLeftSpeed
public int getLeftSpeed()
getRightMode
public int getRightMode()
getRightSpeed
public int getRightSpeed()
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