Get the pulses

Dependents:   Robot_control

Fork of PID by Aaron Berk

PulseChecker.cpp

Committer:
fabian101
Date:
2016-10-26
Revision:
2:ae80e9be91d1
Parent:
1:2aabd4372d05

File content as of revision 2:ae80e9be91d1:

#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::getDistanceX() {
    return  motorHor.getPulses();
}

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