orbotix.robot.base
Class RawMotorCommand

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

public class RawMotorCommand
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
           
static int MOTOR_MODE_FORWARD
           
static int MOTOR_MODE_REVERSE
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
RawMotorCommand(int leftMode, int leftSpeed, int rightMode, int rightSpeed)
           
RawMotorCommand(android.os.Parcel source)
           
 
Method Summary
 int describeContents()
           
 int getLeftMode()
           
 int getLeftSpeed()
           
 int getRightMode()
           
 int getRightSpeed()
           
static void sendCommand(Robot robot, int leftMode, int leftSpeed, int rightMode, int rightSpeed)
           
 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

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
Constructor Detail

RawMotorCommand

public RawMotorCommand(int leftMode,
                       int leftSpeed,
                       int rightMode,
                       int rightSpeed)

RawMotorCommand

public RawMotorCommand(android.os.Parcel source)
Method Detail

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