orc
Class Servo
java.lang.Object
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]. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Servo
public Servo(Orc orc,
int port,
double pos0,
int usec0,
double pos1,
int usec1)
- port [0,7].
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]