Skip to content

Commit db5084a

Browse files
committed
Renaming loop variable 'i' to 'angle' in order to better reflect on what is being set.
1 parent 7342751 commit db5084a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/Tools/Test_Motor_Angular_Control/Test_Motor_Angular_Control.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ void loop()
3232
return;
3333
}
3434

35-
for (float i = 0.0; i <= 180.0; i+=10.0) {
36-
Braccio.move(selected_motor).to(i);
37-
Serial.println("Current angle: " + String(i));
35+
for (float angle = 0.0; angle <= 180.0; angle += 10.0) {
36+
Braccio.move(selected_motor).to(angle);
37+
Serial.println("Current angle: " + String(angle));
3838
delay(100);
3939
}
4040
}

0 commit comments

Comments
 (0)