Matthew's Portfolio
All Classes Files Functions Variables Pages
encoder.py File Reference

In charge of keeping track of the position and speed of encoder. More...

Classes

class  encoder.encoder
 Encoder class to allow for several encoders to be used. More...
 

Detailed Description

In charge of keeping track of the position and speed of encoder.

This script implements an algorithm that accounts for overflow and underflow in the encoder tick values. From this, the position, in degrees, and speed, in rpm, can be computed and sent back to the controller task. Other features are instantaneously getting the position, speed, and delta, as well as zeroing the encoder. See source code here: https://bitbucket.org/MatthewFrostCP/me305_bblabs/src/master/Lab_Final/encoder.py

Author
Matthew Frost
Date
Originally created on 02/25/21
Last modified on 03/17/21