Skip to content

Commit a71deba

Browse files
committed
Moved constants to CPP #44
1 parent 84f3a1e commit a71deba

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Software/Arduino code/Sidereal.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#include "Sidereal.hpp"
22

3+
// Constants for sidereal calculation
4+
// Source: http://www.stargazing.net/kepler/altaz.html
5+
#define C1 100.46
6+
#define C2 0.985647
7+
#define C3 15.0
8+
#define C4 -0.5125
9+
#define J2000 2000
10+
311
static DayTime Sidereal::calculateByGPS(TinyGPSPlus* gps){
412
DayTime timeUTC = DayTime(gps->time.hour(), gps->time.minute(), gps->time.second());
513
int deltaJd = calculateDeltaJd(gps->date.year(), gps->date.month(), gps->date.day());

Software/Arduino code/Sidereal.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@
55

66
#include "DayTime.hpp"
77

8-
// Constants for sidereal calculation
9-
// Source: http://www.stargazing.net/kepler/altaz.html
10-
#define C1 100.46
11-
#define C2 0.985647
12-
#define C3 15.0
13-
#define C4 -0.5125
14-
#define J2000 2000
15-
168

179
class Sidereal
1810
{

0 commit comments

Comments
 (0)