jBotBrain.hw
Class ServoMotor

java.lang.Object
  extended by jBotBrain.hw.ServoMotor

public class ServoMotor
extends Object

Abstraction of servo motor at digital output. Examples of usage:

 ServoMotor servo = new ServoMotor(DigitalOutput.A);
 servo.setValue(200);
 

Author:
Martin Wolf

Constructor Summary
ServoMotor(DigitalOutput output)
          Standard constructor
 
Method Summary
 void setValue(int value)
          Set servo motor position
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Constructor Detail

ServoMotor

public ServoMotor(DigitalOutput output)
Standard constructor

Parameters:
output - - digital output, which will be used to generate servo pulses
Method Detail

setValue

public void setValue(int value)
Set servo motor position

Parameters:
value - - value for servo position