$search
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 |
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.
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::__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.
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.
Definition at line 523 of file wiistate.py.
Definition at line 522 of file wiistate.py.