EEEN21000
GROUP 30 Line Following Buggy
Loading...
Searching...
No Matches
encoder.h File Reference
#include "QEI.h"
#include "mbed.h"
#include <chrono>
Include dependency graph for encoder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Encoder
 Encoder class with helper functions, derived from QEI. More...
 

Macros

#define GEAR_RATIO   18.75
 Gear ratio module. More...
 
#define DIAMETER   0.08
 Diameter of the wheel. More...
 
#define WHEEL_DISTANCE   0.212
 Distance between two wheels. More...
 
#define COUNTS_PER_REV   256
 Counts per revolution of encoder. More...
 
#define POLLING_PERIOD   10ms
 Polling period of encoder. More...
 
#define M_PI   3.14159265358979323846264338327950288
 Define M_PI on ArmC6. More...
 

Macro Definition Documentation

◆ GEAR_RATIO

#define GEAR_RATIO   18.75

Gear ratio module.

◆ DIAMETER

#define DIAMETER   0.08

Diameter of the wheel.

◆ WHEEL_DISTANCE

#define WHEEL_DISTANCE   0.212

Distance between two wheels.

◆ COUNTS_PER_REV

#define COUNTS_PER_REV   256

Counts per revolution of encoder.

◆ POLLING_PERIOD

#define POLLING_PERIOD   10ms

Polling period of encoder.

◆ M_PI

#define M_PI   3.14159265358979323846264338327950288

Define M_PI on ArmC6.