Instantiates encoders in the pitch and roll directions. More...
Functions | |
def | ME405_FP_EncoderTask.encoderTaskFun () |
Instantiates, captures, and filters encoder data. More... | |
Instantiates encoders in the pitch and roll directions.
Specifies appropriate pins and timers per encoder. Filters the encoder positions and velocity data using an alpha-beta filter.
source code: https://bitbucket.org/eliotBriefer/me405_term_project/src/master/Tasks/ME405_FP_EncoderTask.py
def ME405_FP_EncoderTask.encoderTaskFun | ( | ) |
Instantiates, captures, and filters encoder data.
This function implements Task 2, a task which is somewhat sillier than Task 1 in that Task 2 won't shut up. Also, one can test the relative speed of Python string manipulation with memory allocation (slow) vs. that of manipulation of bytes in pre-allocated memory (faster).