Class ServoMotor

java.lang.Object
  extended by ServoMotor

public class ServoMotor
extends java.lang.Object

This class manipulates a servo motor.

Version:
1.0
Author:
Fabio Hedayioglu, Ian Utting

Constructor Summary
ServoMotor()
          Creates the Servo Motor at the default pin (GPIO 1)
 
Method Summary
 int getPosition()
          Get the Servo current position
 void setPosition(int positionNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServoMotor

public ServoMotor()
Creates the Servo Motor at the default pin (GPIO 1)

Method Detail

getPosition

public int getPosition()
Get the Servo current position

Returns:
the integer with the servo motor's current position.

setPosition

public void setPosition(int positionNumber)