NXPCUP-libary
Library for car's control board on NXPCUP competition based on the Mbed framework.
Public Attributes | List of all members
nxpcup::Encoder::Config Struct Reference

#include <Encoder.h>

Public Attributes

PinName pin
 
int pulsePerRevolution = 400
 
float gearRatio = 78 / 36.0
 
int wheelCircumference = 204
 

Member Data Documentation

float nxpcup::Encoder::Config::gearRatio = 78 / 36.0

gear ration between encoder and wheel

PinName nxpcup::Encoder::Config::pin

pin with interrupt for signal from encoder

int nxpcup::Encoder::Config::pulsePerRevolution = 400

number of pulse on encoder per revolution

int nxpcup::Encoder::Config::wheelCircumference = 204

wheel circumference in milimeters


The documentation for this struct was generated from the following file: