Changeset View
Changeset View
Standalone View
Standalone View
kstars/ksalmanac.cpp
Context not available. | |||||
18 | 18 | | |||
---|---|---|---|---|---|
19 | #include "ksalmanac.h" | 19 | #include "ksalmanac.h" | ||
20 | 20 | | |||
21 | #include <cmath> | | |||
22 | | ||||
23 | #include "geolocation.h" | 21 | #include "geolocation.h" | ||
24 | #include "kstarsdata.h" | | |||
25 | #include "kstarsdatetime.h" | | |||
26 | #include "ksnumbers.h" | 22 | #include "ksnumbers.h" | ||
27 | #include "dms.h" | 23 | #include "kstarsdata.h" | ||
28 | #include "skyobjects/kssun.h" | | |||
29 | #include "skyobjects/ksmoon.h" | | |||
30 | #include "skyobjects/skyobject.h" | | |||
31 | 24 | | |||
32 | KSAlmanac::KSAlmanac() : SunRise(0), SunSet(0), MoonRise(0), MoonSet(0) | 25 | KSAlmanac::KSAlmanac() | ||
33 | { | 26 | { | ||
34 | KStarsData *data = KStarsData::Instance(); | 27 | KStarsData *data = KStarsData::Instance(); | ||
35 | 28 | | |||
Context not available. | |||||
122 | if (!asc && last_alt >= -18.0 && alt <= -18.0) | 115 | if (!asc && last_alt >= -18.0 && alt <= -18.0) | ||
123 | dusk = h; | 116 | dusk = h; | ||
124 | 117 | | |||
125 | last_h = h; | 118 | // Never used | ||
119 | // last_h = h; | ||||
126 | last_alt = alt; | 120 | last_alt = alt; | ||
127 | } | 121 | } | ||
128 | 122 | | |||
Context not available. |