File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -41,19 +41,6 @@ void loop()
41
41
{
42
42
splitFlap.update ();
43
43
44
- // move flap every 200ms
45
- static unsigned long lastMove = 0 ;
46
- if (millis () - lastMove > 5000 )
47
- {
48
- flapIndex = (flapIndex + 1 ) % 50 ;
49
-
50
- Serial.printf (" Setting flap to index: %d\n " , flapIndex);
51
- splitFlap.setFlap (flapIndex);
52
- // splitFlap.moveFlaps(51); // TODO: make sure this also works with > 50
53
-
54
- lastMove = millis ();
55
- }
56
-
57
44
// Check if data is available to read
58
45
if (mySerial.available ())
59
46
{
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ class SplitFlap
43
43
stepper.runSpeed ();
44
44
}
45
45
stepper.setCurrentPosition (0 );
46
+ Serial.println (" Homing complete" );
46
47
47
48
// TODO: add max steps
48
49
}
You can’t perform that action at this time.
0 commit comments