Skip to content

Commit 7acdc9e

Browse files
author
openastrotech
committed
arduino 1.2.3
1 parent 378dbb5 commit 7acdc9e

File tree

9 files changed

+12
-9
lines changed

9 files changed

+12
-9
lines changed
Binary file not shown.

Software/Arduino code/OpenAstroTracker_v1.2.2/OpenAstroTracker_v1.2.2.ino renamed to Software/Arduino code/OpenAstroTracker_v1.2.3/OpenAstroTracker_v1.2.3.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
=======================================================================================================================================
33
4-
Version 1.1
4+
Version 1.2.3
55
66
1. Connect your Arduino, under tools choose "Arduino Uno", set the right Port and set "Arduino ISP" as the Programmer.
77
2. Hit upload

Software/Arduino code/OpenAstroTracker_v1.2.2/c_buttons.ino renamed to Software/Arduino code/OpenAstroTracker_v1.2.3/c_buttons.ino

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ void loop() {
99
moveRA = (hourRA * onehour + minRA * (onehour / float(60)) + secRA * (onehour / float(3600))) / 2;
1010
moveDEC = (degreeDEC * float(164) + minDEC * (float(164) / float(60)) + secDEC * (float(164) / float(3600))) / 2;
1111

12-
if (moveRA > 6 * onehour) { //turn both RA and DEC axis around if target is below horizontal parallel
13-
moveRA -= long(12 * onehour);
12+
if (moveRA > (6 * onehour / 2)) { //turn both RA and DEC axis around if target is below horizontal parallel
13+
moveRA -= long(12 * onehour / 2);
1414
moveDEC = -moveDEC;
1515
}
16+
1617
stepperRA.moveTo(-moveRA);
1718
stepperDEC.moveTo(moveDEC);
1819

@@ -37,7 +38,7 @@ void loop() {
3738
}
3839
while (menu == 5) {
3940
inputcal += 1; //0.0001;
40-
41+
4142
break;
4243
}
4344
break;
@@ -58,7 +59,7 @@ void loop() {
5859
}
5960
while (menu == 5) {
6061
inputcal -= 1 ; //0.0001;
61-
62+
6263
break;
6364
}
6465
//while (menu == 2) {
@@ -73,8 +74,8 @@ void loop() {
7374
}
7475

7576
case btnSELECT: {
76-
/*stepperRA.moveTo(moveRA);
77-
stepperDEC.moveTo(moveDEC);*/
77+
/*stepperRA.moveTo(-moveRA);
78+
stepperDEC.moveTo(moveDEC);*/
7879
if (menu < 2) {
7980
while (stepperRA.distanceToGo() != 0 && stepperDEC.distanceToGo() == 0) {
8081
stepperRA.run();

Software/Arduino code/OpenAstroTracker_v1.2.2/d_calculations.ino renamed to Software/Arduino code/OpenAstroTracker_v1.2.3/d_calculations.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ hourRAprint = hourRA + hHAcorrection;
4949
if (mHAcorrection < 0) hourRAprint -= 1;
5050
minRAprint = minRA + mHAcorrection;
5151
int secRAprint = secRA + sHAcorrection;
52+
5253
//if (hourRA > 12) hourRA += -24;
54+
5355
if (minRAprint > 59) {
5456
minRA -= 60;
5557
hourRA += 1;

Software/Arduino code/OpenAstroTracker_v1.2.2/e_printout.ino renamed to Software/Arduino code/OpenAstroTracker_v1.2.3/e_printout.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ if (!pcControl) {
3333
//lcd.print(" ");
3434

3535
//lcd.print(int(diamCorrection)); //for debugging
36-
lcd.print(" ");
37-
lcd.print(hourRA);
36+
lcd.print("");
37+
lcd.print(moveRA);
3838
//lcd.print(" ");
3939
}
4040
if (RAselect == 1) {

0 commit comments

Comments
 (0)