Skip to content

Commit 9f7ce6b

Browse files
committed
RAsteps must be float for onehour calculation
onehour calculation requires RAsteps (declared as int) to be a float value, parens were misplaced and did not accomplish this.
1 parent 5491783 commit 9f7ce6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Software/Arduino code/OpenAstroTracker/c_buttons.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ void loop() {
55
//speedcalibration += inputcal / 1000;
66
trackingspeed = ((((335.1417 / 288.0) * RevSteps) / 3590)) - 1 + float(speedcalibration);
77

8-
onehour = (float(RAsteps / 288)) * RevSteps;
8+
onehour = (float(RAsteps) / 288) * RevSteps;
99
moveRA = (hourRA * onehour + minRA * (onehour / float(60)) + secRA * (onehour / float(3600))) / 2;
1010
moveDEC = (degreeDEC * float(DECsteps) + minDEC * (float(DECsteps) / float(60)) + secDEC * (float(DECsteps) / float(3600)));
1111

0 commit comments

Comments
 (0)