From d80ff398d26ed6e563522cccf3acf1de21834a5a Mon Sep 17 00:00:00 2001 From: Ton van Overbeek Date: Sun, 14 Aug 2022 14:49:13 +0200 Subject: [PATCH] Add missing degree to radian conversion When running the code I saw the moon-earth-sun positions where not on a single line as expected for a full moon day (2022-08-12). After checking the calculations with the example in https://www.stjarnhimlen.se/comp/tutorial.html#5 I found the missing conversion from degrees to radians in celestial_bodies() in solar.cpp. With thr converion added I get the correct positions for a full moon and the equinoxes. The sister project for the pico has the conversion included. --- .solar.cpp.swp | Bin 0 -> 16384 bytes solar.cpp | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 .solar.cpp.swp diff --git a/.solar.cpp.swp b/.solar.cpp.swp new file mode 100644 index 0000000000000000000000000000000000000000..af283a84bb159cf5e7eee2aa3bd8b709898cf4cf GIT binary patch literal 16384 zcmeHOU996q6?VJJLZPJy9sq&Bbfwl|Z+vaX&QF(YwX}h5;g)5)g|@f5!Aa&OE>3*c zcCyLcT@XC?y$A`mRiPjxDxP>jDi5egOL-_D!3*MnCy=0OC4_jP@SX9D?ZnBltW+T+ zTl$iC=FFKh-#Ig$GrqTHeBsoN+SDxt*LxHt{_{V2Kls&$kNo|kisH`PNibs}RbB5o z8%(0=&L>ZYfxZ`d@qyk8=Ii9YA{B0*aijen3&X`}Z`=3c*k{#fI;jrb0~T&af$xTT ze}8|Sj21*7>21*7>21*7> z2L2Bji1!aEUxnSb3fqU``<9jOe~D`(%H_9|J0!~aIRbvay3$_UmR}_UB?Bb`B?Bb` zB?Bb`B?Bb`B?Bb`B?Bb`B?JEh2Hb(7ydC}iloENo|CjmyYj-NjUx8l&-v=%Omw+K~ z9(WL_0T%G$yA|a=;3)8;I~3(<;7QneZzhR)? z1+D_$2KIm!Py;OBk4I1rd;@p}cn~-Yy!kdo`6uvu;054W;3_Z&I>4R4pAIX^%fR=5 z=YVH{eV_{51KbU~i9?cWz|+7P;4a`6;0+wUybinqya0R+=mGZuCxCl^+kwBpN93oM z|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