CALPOLY MECHATRONICS
Documentation for all Mechatronics Labs
ME405_FP_EncoderTask.py File Reference

Instantiates encoders in the pitch and roll directions. More...

Functions

def ME405_FP_EncoderTask.encoderTaskFun ()
 Instantiates, captures, and filters encoder data. More...
 

Detailed Description

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

Author
Nicholas Greco
Date
6/11/2021

Function Documentation

◆ encoderTaskFun()

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).