Public Member Functions | Public Attributes | Private Attributes
wiistate.GyroReading Class Reference

List of all members.

Public Member Functions

def __add__
def __div__
def __getitem__
def __init__
def __repr__
def __str__
def __sub__
def scale
def tuple

Public Attributes

 time

Private Attributes

 _measurement

Detailed Description

Instances hold one gyroscope reading.

    Methods:
      [PHI], [THETA], [PSI] to obtain respective axis paramters.
      tuple() to obtain phi/theta/psi as a NumPy array.
      +,-,/ to add or subtract readings from each other
      as one vector operation (pairwise for each dimension).

Definition at line 498 of file wiistate.py.


Constructor & Destructor Documentation

def wiistate.GyroReading.__init__ (   self,
  phiThetaPsi,
  theTime = None 
)
Create a (possibly) time stamped WII Reading.

Parameter phiThetaPsi is an array of phi,theta,psi coordinates of the
gyro reading. GyroReading instances can be added, subtracted, and
divided into each other. The operations are pairwise over
phi, theta, and psi. A numpy array of phi,theta,psi is available by
calling tuple(). The time stamp is available via time().

Definition at line 512 of file wiistate.py.


Member Function Documentation

def wiistate.GyroReading.__add__ (   self,
  other 
)
Adding two gyro readings returns a new reading with components added pairwise.

Definition at line 543 of file wiistate.py.

def wiistate.GyroReading.__div__ (   self,
  other 
)
Dividing two readings returns a numpy tuple with components divided pairwise.

Definition at line 554 of file wiistate.py.

def wiistate.GyroReading.__getitem__ (   self,
  key 
)

Definition at line 526 of file wiistate.py.

Definition at line 537 of file wiistate.py.

Definition at line 531 of file wiistate.py.

def wiistate.GyroReading.__sub__ (   self,
  other 
)
Subtracting two gyro readings returns a new reading 
with components subtracted pairwise.

Definition at line 547 of file wiistate.py.

def wiistate.GyroReading.scale (   self,
  scaleFactor 
)
Return a numpy tuple that with X, Y, Z scaled by the given factor.

Definition at line 559 of file wiistate.py.

Definition at line 540 of file wiistate.py.


Member Data Documentation

Definition at line 519 of file wiistate.py.

Definition at line 519 of file wiistate.py.


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


wiimote
Author(s): Andreas Paepcke, Melonee Wise
autogenerated on Mon Oct 6 2014 01:06:37