Skip to content

Commit dc13d14

Browse files
V1.7.13 - Updates
- Added some logging around EEPROM usage
1 parent a9c9c53 commit dc13d14

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

Software/Arduino code/OpenAstroTracker/Mount.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ void Mount::writePersistentData(int which, int val)
211211

212212
EEPROMupdate(loByteLocation, val & 0x00FF);
213213
EEPROMupdate(hiByteLocation, (val >> 8) & 0x00FF);
214+
215+
LOGV5(DEBUG_MOUNT,"EEPROM Write: wrote %x to %d and %x to %d", val & 0x00FF, loByteLocation, (val >> 8) & 0x00FF, hiByteLocation);
214216
}
215217

216218
/////////////////////////////////
@@ -304,12 +306,17 @@ float Mount::getSpeedCalibration() {
304306
//
305307
/////////////////////////////////
306308
void Mount::setSpeedCalibration(float val, bool saveToStorage) {
309+
LOGV3(DEBUG_MOUNT, "Mount: Updating speed calibration from %f to %f", _trackingSpeedCalibration , val);
307310
_trackingSpeedCalibration = val;
308311

312+
LOGV2(DEBUG_MOUNT, "Mount: Current tracking speed is %f steps/sec", _trackingSpeed);
313+
309314
// The tracker simply needs to rotate at 15degrees/hour, adjusted for sidereal
310315
// time (i.e. the 15degrees is per 23h56m04s. 86164s/86400 = 0.99726852. 3590/3600 is the same ratio) So we only go 15 x 0.99726852 in an hour.
311316
_trackingSpeed = _trackingSpeedCalibration * _stepsPerRADegree * siderealDegreesInHour / 3600.0f;
312317

318+
LOGV2(DEBUG_MOUNT, "Mount: New tracking speed is %f steps/sec", _trackingSpeed);
319+
313320
if (saveToStorage) {
314321
val = (val - 1.0) * 10000;
315322
if (val > 32766) val = 32766;

Software/Arduino code/OpenAstroTracker/OpenAstroTracker.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#include "Globals.hpp"
2020

21-
String version = "V1.7.12";
21+
String version = "V1.7.13";
2222

2323
///////////////////////////////////////////////////////////////////////////
2424
// Please see the Globals.h file for configuration of the firmware.
@@ -40,10 +40,11 @@ float RAStepsPerRevolution = 4096;
4040
// One RA revolution needs 26.43 (1057.1mm / 40mm) stepper revolutions (V2: 28.27 (1131mm/40mm))
4141
// Which means 108245 steps (26.43 x 4096) moves 360 degrees (V2: 115812 steps (28.27 x 4096))
4242
// So there are 300.1 steps/degree (108245 / 360) (V2: 322 (115812 / 360))
43-
// Theoretically correct RA tracking speed is 1.246586 (300 x 14.95903 / 3600) (V2 : 1.333800 (322 x 14.95903 / 3600) steps/sec
43+
// Theoretically correct RA tracking speed is 1.246586 (300 x 14.95903 / 3600) (V2 : 1.333800 (322 x 14.95903 / 3600) steps/sec (this is for 20T)
4444

4545
// Your drive pulley tooth count:
4646
#define RAPulleyTeeth 16
47+
4748
// the Circumference of the RA wheel
4849
// V1: 1057.1
4950
// V2: 1131
@@ -64,7 +65,7 @@ float DECStepsPerRevolution = 4096;
6465
// DEC wheel is 2 x PI x 90mm circumference which is 565.5mm
6566
// One DEC revolution needs 14.13 (565.5mm/40mm) stepper revolutions
6667
// Which means 57907 steps (14.14 x 4096) moves 360 degrees
67-
// So there are 160.85 steps/degree (57907/360)
68+
// So there are 160.85 steps/degree (57907/360) (this is for 20T)
6869
#define DecPulleyTeeth 16
6970

7071
int DECStepsPerDegree = (565.5 / (DecPulleyTeeth * 2.0) * DECStepsPerRevolution / 360.0);

0 commit comments

Comments
 (0)