orc
Class Servo

java.lang.Object
  extended by orc.Servo

public class Servo
extends java.lang.Object

Represents a Futaba-style servo connected to one of the "fast" digital I/O pins.


Constructor Summary
Servo(Orc orc, int port, double pos0, int usec0, double pos1, int usec1)
          port [0,7].
 
Method Summary
 void idle()
           
static Servo makeMPIMX400(Orc orc, int port)
          Create a servo based on a nominal MPI MX-400 servo with positions ranging from [0, PI]
 void setPosition(double pos)
           
 void setPulseWidth(int usecs)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Servo

public Servo(Orc orc,
             int port,
             double pos0,
             int usec0,
             double pos1,
             int usec1)
port [0,7].

Method Detail

setPulseWidth

public void setPulseWidth(int usecs)

idle

public void idle()

setPosition

public void setPosition(double pos)

makeMPIMX400

public static Servo makeMPIMX400(Orc orc,
                                 int port)
Create a servo based on a nominal MPI MX-400 servo with positions ranging from [0, PI]