From 7804084f19c11c49b5462e5588b1a5158852b0bf Mon Sep 17 00:00:00 2001 From: KaraBun Date: Mon, 2 Jan 2023 22:41:55 -0500 Subject: [PATCH] Initial test implimentation of class --- Lanes.ino | 1 + src/Lanes.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Lanes.ino b/Lanes.ino index be529a3..9a69685 100644 --- a/Lanes.ino +++ b/Lanes.ino @@ -18,6 +18,7 @@ const int DebounceTime = 10; //Debounce time in ms Encoder LeftEnc( Enc1P1, Enc1P2); Encoder RightEnc( Enc2P1, Enc2P2); +Lane LaneObject(Lane1Pin); int E1 = 0; int E2 = 0; diff --git a/src/Lanes.h b/src/Lanes.h index 5e00564..40efd2a 100644 --- a/src/Lanes.h +++ b/src/Lanes.h @@ -3,7 +3,7 @@ #include -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 { @@ -22,6 +22,8 @@ private: int time; int track[4][64]; int end; + int startStep; + int endStep; }; #endif \ No newline at end of file