Skip to content
This repository was archived by the owner on Oct 18, 2021. It is now read-only.

Commit 6153d1b

Browse files
committed
fix for #31
1 parent 05ed10f commit 6153d1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

robot_polargraph.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ void robot_findHome() {
233233
delay(500);
234234

235235
Serial.println(F("Estimating position..."));
236-
long count[NUM_MOTORS];
236+
long count[NUM_MOTORS+NUM_SERVOS];
237237
count[0] = calibrateLeft/THREAD_PER_STEP;
238238
count[1] = calibrateRight/THREAD_PER_STEP;
239239
count[2] = axies[2].pos;
@@ -277,7 +277,7 @@ void calibrateBelts() {
277277
digitalWrite(MOTOR_0_DIR_PIN, LOW);
278278
digitalWrite(MOTOR_1_DIR_PIN, LOW);
279279
int left = 0, right = 0;
280-
long steps[NUM_MOTORS];
280+
long steps[NUM_MOTORS+NUM_SERVOS];
281281
float homePos[NUM_AXIES];
282282
homePos[0]=axies[0].homePos;
283283
homePos[1]=axies[1].homePos;

0 commit comments

Comments
 (0)