Initial test implimentation of class

This commit is contained in:
KaraBun 2023-01-02 22:41:55 -05:00
parent 137eda2a45
commit 7804084f19
2 changed files with 4 additions and 1 deletions

View file

@ -18,6 +18,7 @@ const int DebounceTime = 10; //Debounce time in ms
Encoder LeftEnc( Enc1P1, Enc1P2); Encoder LeftEnc( Enc1P1, Enc1P2);
Encoder RightEnc( Enc2P1, Enc2P2); Encoder RightEnc( Enc2P1, Enc2P2);
Lane LaneObject(Lane1Pin);
int E1 = 0; int E1 = 0;
int E2 = 0; int E2 = 0;

View file

@ -3,7 +3,7 @@
#include <Arduino.h> #include <Arduino.h>
const int CurveTable[2] = {0, 1}; const int PROGMEM CurveTable[128] = {0,37,58,73,85,95,103,110,116,122,127,131,135,139,143,146,149,153,155,158,161,163,165,168,170,172,174,176,178,179,181,183,184,186,188,189,191,192,193,195,196,197,198,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,219,220,221,222,223,223,224,225,226,226,227,228,229,229,230,231,231,232,233,233,234,234,235,236,236,237,237,238,239,239,240,240,241,241,242,242,243,244,244,245,245,246,246,247,247,248,248,249,249,249,250,250,251,251,252,252,253,253,253,254,254,255,255,256,256};
class Lane { class Lane {
@ -22,6 +22,8 @@ private:
int time; int time;
int track[4][64]; int track[4][64];
int end; int end;
int startStep;
int endStep;
}; };
#endif #endif