diff options
author | root <root@lumpy.lan> | 2021-11-30 00:24:43 +0000 |
---|---|---|
committer | root <root@lumpy.lan> | 2021-11-30 00:24:43 +0000 |
commit | 869118f74612829db47d0d681cee5b4af937b16f (patch) | |
tree | 9195fea1c0d6a002704ba2f452a4ec131923da80 /stm32/app/events.c | |
parent | 440039cb23f786573940ec1eafa665f9de561eae (diff) | |
download | metric_clock-869118f74612829db47d0d681cee5b4af937b16f.tar.gz metric_clock-869118f74612829db47d0d681cee5b4af937b16f.tar.bz2 metric_clock-869118f74612829db47d0d681cee5b4af937b16f.zip |
Diffstat (limited to 'stm32/app/events.c')
-rw-r--r-- | stm32/app/events.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/stm32/app/events.c b/stm32/app/events.c index 2ad9b47..03b6e2a 100644 --- a/stm32/app/events.c +++ b/stm32/app/events.c @@ -8,6 +8,7 @@ // shamelessly stolen from Meeus Astronmical Algorithms Chapter 27 table 27.B // chapter 25 is probably more tractable, but this is easier to code up +# if 0 static double mean_vernal_equinox (unsigned year) { double y = year; @@ -23,6 +24,7 @@ static double mean_summer_solstice (unsigned year) y *= 0.001; return 2451716.56767 + 365241.62603 * y + 0.00325 * (y * y) + 0.00888 * (y * y * y) - 0.00030 * (y * y * y * y); } +#endif static double mean_autumnal_equinox (unsigned year) { @@ -32,6 +34,7 @@ static double mean_autumnal_equinox (unsigned year) return 2451810.21715 + 365242.01767 * y - 0.11575 * (y * y) + 0.00337 * (y * y * y) + 0.00078 * (y * y * y * y); } +#if 0 static double mean_winter_solstice (unsigned year) { double y = year; @@ -39,7 +42,7 @@ static double mean_winter_solstice (unsigned year) y *= 0.001; return 2451900.05952 + 365242.74049 * y - 0.06223 * (y * y) - 0.00823 * (y * y * y) + 0.00032 * (y * y * y * y); } - +#endif static double orbital_periodic_terms (double t) { |