Get the pulses

Dependents:   Robot_control

Fork of PID by Aaron Berk

PulseChecker.cpp

Committer:
fabian101
Date:
2016-10-21
Revision:
1:2aabd4372d05
Child:
2:ae80e9be91d1

File content as of revision 1:2aabd4372d05:

#include "PulseChecker.h"

QEI motorHor(D12 ,D13 ,NC, 64 ,QEI::X4_ENCODING); 
QEI motorVer(D14 ,D15 ,NC, 64 ,QEI::X4_ENCODING); 

PulseChecker::PulseChecker(){
}

int PulseChecker::getDistanceHor() {
    return  motorHor.getPulses();
}

int PulseChecker::getDistanceVer() {
    return  motorVer.getPulses();
}