Public Member Functions | Public Attributes | Private Attributes | List of all members
wiimote.wiistate.GyroReading Class Reference

Public Member Functions

def __add__ (self, other)
 
def __div__ (self, other)
 
def __getitem__ (self, key)
 
def __init__ (self, phiThetaPsi, theTime=None)
 
def __repr__ (self)
 
def __str__ (self)
 
def __sub__ (self, other)
 
def scale (self, scaleFactor)
 
def tuple (self)
 

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 wiimote.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 wiimote.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 wiimote.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 wiimote.wiistate.GyroReading.__getitem__ (   self,
  key 
)

Definition at line 526 of file wiistate.py.

def wiimote.wiistate.GyroReading.__repr__ (   self)

Definition at line 537 of file wiistate.py.

def wiimote.wiistate.GyroReading.__str__ (   self)

Definition at line 531 of file wiistate.py.

def wiimote.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 wiimote.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.

def wiimote.wiistate.GyroReading.tuple (   self)

Definition at line 540 of file wiistate.py.

Member Data Documentation

wiimote.wiistate.GyroReading._measurement
private

Definition at line 523 of file wiistate.py.

wiimote.wiistate.GyroReading.time

Definition at line 522 of file wiistate.py.


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


wiimote
Author(s): Andreas Paepcke, Melonee Wise, Mark Horn
autogenerated on Fri Jun 7 2019 22:01:33