Skip to content

Commit 72024fc

Browse files
V1.6.29 - Updates
- Polaris RA now only needs to be changed/maintained in OpenAstroTracker.ino.
1 parent 5baf031 commit 72024fc

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

Software/Arduino code/OpenAstroTracker/OpenAstroTracker.ino

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
#include "Globals.h"
1818

19-
String version = "V1.6.28";
19+
String version = "V1.6.29";
2020

2121
///////////////////////////////////////////////////////////////////////////
2222
// Please see the Globals.h file for configuration of the firmware.
@@ -69,10 +69,10 @@ float DECStepperDownLimit = 10000; // Going much more than this will make the
6969
float DECStepperUpLimit = -22000; // Going much more than this is going below the horizon.
7070

7171
// These values are needed to calculate the current position during initial alignment.
72-
int PolarisRAHour = 21;
73-
int PolarisRAMinute = 2;
74-
int PolarisRASecond = 25;
75-
// You get these values by calculating 24h minus the current (not J2000) RA of Polaris.
72+
int PolarisRAHour = 2;
73+
int PolarisRAMinute = 58;
74+
int PolarisRASecond = 0;
75+
// Use something like Stellarium to look up the RA of Polaris in JNow (on date) variant.
7676
// This changes slightly over weeks, so adjust every couple of months.
77-
// This value is from 27.Nov.19, I suggest next adjustment in mid 2020
77+
// This value is from 18.Apr.2020, next adjustment suggested at end 2020
7878
// The same could be done for the DEC coordinates but they dont change significantly for the next 5 years

Software/Arduino code/OpenAstroTracker/b_setup.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ void setup() {
3535

3636
// Configure the mount
3737
// Set the global HA correction
38-
mount.setHACorrection(PolarisRAHour, PolarisRAMinute, PolarisRASecond);
38+
DayTime polaris = DayTime(24,0,0);
39+
polaris.subtractTime(DayTime(PolarisRAHour, PolarisRAMinute, PolarisRASecond));
40+
mount.setHACorrection(polaris.getHours(), polaris.getMinutes(), polaris.getSeconds());
3941

4042
// Set the stepper motor parameters
4143
mount.configureRAStepper(FULLSTEP, RAmotorPin1, RAmotorPin2, RAmotorPin3, RAmotorPin4, RAspeed, RAacceleration);

Software/Arduino code/OpenAstroTracker/c722_menuPOI.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ struct PointOfInterest {
1313
PointOfInterest pointOfInterest[] = {
1414
// Name (15chars) RA (hms) DEC (dms)
1515
// 012345678901234
16-
{ ">Polaris" , 2, 57, 56, 89, 21, 2 },
16+
{ ">Polaris" , PolarisRAHour, PolarisRAMinute, PolarisRASecond, 89, 21, 2 },
1717
{ ">Big Dipper" , 12, 16, 26, 56, 55, 7 },
1818
{ ">M31 Andromeda" , 0, 43, 52, 41, 22, 53 },
1919
{ ">M42 Orion Nbula", 5, 36, 18, -5, 22, 44 },

Software/Arduino code/OpenAstroTracker/c76_menuCAL.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ bool processCalibrationKeys() {
9393

9494
// Move the RA to that of Polaris. Moving to this RA aligns the DEC axis such that
9595
// it swings along the line between Polaris and the Celestial Pole.
96-
mount.targetRA() = DayTime(2, 57, 56); // This is Polaris RA.
96+
mount.targetRA() = DayTime(PolarisRAHour, PolarisRAMinute, PolarisRASecond);
9797
// Account for the current settings.
9898
mount.targetRA().addTime(mount.getHACorrection());
9999
mount.targetRA().subtractTime(mount.HA());
100100

101-
// Now set DEC to move to Polaris
101+
// Now set DEC to move to Home position
102102
mount.targetDEC() = DegreeTime(90 - (NORTHERN_HEMISPHERE ? 90 : -90), 0, 0);
103103
mount.startSlewingToTarget();
104104
} else if (key == btnRIGHT) {

0 commit comments

Comments
 (0)