lejos.nxt.addon
Class PFMotorPort

java.lang.Object
  extended by lejos.nxt.addon.PFMotorPort
All Implemented Interfaces:
BasicMotorPort

public class PFMotorPort
extends Object
implements BasicMotorPort

MotorPort for PF Motors using HiTechnic IRLink

Author:
Lawrie Griffiths

Field Summary
 
Fields inherited from interface lejos.nxt.BasicMotorPort
BACKWARD, FLOAT, FORWARD, MAX_POWER, PWM_BRAKE, PWM_FLOAT, STOP
 
Constructor Summary
PFMotorPort(IRLink link, int channel, int slot)
           
 
Method Summary
 void controlMotor(int power, int mode)
           
 void setPWMMode(int mode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PFMotorPort

public PFMotorPort(IRLink link,
                   int channel,
                   int slot)
Method Detail

controlMotor

public void controlMotor(int power,
                         int mode)
Specified by:
controlMotor in interface BasicMotorPort

setPWMMode

public void setPWMMode(int mode)
Specified by:
setPWMMode in interface BasicMotorPort