Racunjanje brzine vrtnje enkodera

Committer:
mlucan
Date:
Tue Feb 11 09:55:29 2020 +0000
Revision:
0:e22f491b10f1
Mjerenje brzine vrtnje sa enkodera;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mlucan 0:e22f491b10f1 1 #ifndef MBED_ODREDJIVANJEBRZINEISMJERA_H
mlucan 0:e22f491b10f1 2 #define MBED_ODREDJIVANJEBRZINEISMJERA_H
mlucan 0:e22f491b10f1 3
mlucan 0:e22f491b10f1 4 #include "mbed.h"
mlucan 0:e22f491b10f1 5
mlucan 0:e22f491b10f1 6
mlucan 0:e22f491b10f1 7 class Bvrtnje
mlucan 0:e22f491b10f1 8 {
mlucan 0:e22f491b10f1 9 public:
mlucan 0:e22f491b10f1 10 Bvrtnje(PinName pin1, PinName pin2);
mlucan 0:e22f491b10f1 11 int brzina1();
mlucan 0:e22f491b10f1 12 int brzina2();
mlucan 0:e22f491b10f1 13 int frekvencija();
mlucan 0:e22f491b10f1 14 bool smjer();
mlucan 0:e22f491b10f1 15
mlucan 0:e22f491b10f1 16 private:
mlucan 0:e22f491b10f1 17 InterruptIn int1;
mlucan 0:e22f491b10f1 18 InterruptIn int2;
mlucan 0:e22f491b10f1 19 };
mlucan 0:e22f491b10f1 20 #endif