Skip to content

Commit bf3dd5e

Browse files
committed
Now using total_steps variable
1 parent 27febca commit bf3dd5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Astrophotography_Tracker/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
microsteps = 64 # Microstepping resolution
1111
total_steps = steps * microsteps # Total microsteps per revolution
1212

13-
wait = 1/ ((gear_ratio * steps * microsteps) / 86400)
13+
wait = 1/ ((gear_ratio * total_steps) / 86400)
1414

1515
step = digitalio.DigitalInOut(board.D6)
1616
direct = digitalio.DigitalInOut(board.D5)

0 commit comments

Comments
 (0)