OE - Pi  1.1
 All Classes Namespaces Functions
pipan.PiPan Class Reference

PiPan: this class provides functions for PiPan servo controller for read and write operations. More...

Public Member Functions

def __init__
 Initialize the class by opening servoblaster. More...
 
def pwm
 Writes a pwm value one of the servo controller pins. More...
 
def neutral_pan
 Brings the pan servo to neutral position. More...
 
def neutral_tilt
 Brings the tilt servo to neutral position. More...
 
def do_pan
 Writes pan movement value between 50 and 250. More...
 
def do_tilt
 

Static Public Attributes

int ServoBlaster = 0
 
int y = 0
 

Detailed Description

PiPan: this class provides functions for PiPan servo controller for read and write operations.

Constructor & Destructor Documentation

def pipan.PiPan.__init__ (   self)

Initialize the class by opening servoblaster.

Parameters
selfThe object pointer.

Member Function Documentation

def pipan.PiPan.do_pan (   self,
  x 
)

Writes pan movement value between 50 and 250.

Parameters
selfThe object pointer.
def pipan.PiPan.neutral_pan (   self)

Brings the pan servo to neutral position.

Parameters
selfThe object pointer.
def pipan.PiPan.neutral_tilt (   self)

Brings the tilt servo to neutral position.

Parameters
selfThe object pointer.
def pipan.PiPan.pwm (   self,
  pin,
  angle 
)

Writes a pwm value one of the servo controller pins.

Parameters
selfThe object pointer.
pinThe servo number at which to write.
angleThe angle to write to the desired pin.

The documentation for this class was generated from the following file: