Don Cross
c5ee9b6830
Starting to get doxygen to work.
2019-05-26 10:09:09 -04:00
Don Cross
6a96c520dd
Original generated Doxyfile.
2019-05-26 09:21:18 -04:00
Don Cross
baf38c9a0e
No C API reference exists yet.
2019-05-25 21:56:06 -04:00
Don Cross
9ed995e462
Added C function Astronomy_CurrentTime(). Added C moon phase demo.
2019-05-25 21:18:24 -04:00
Don Cross
96b3b8a9f0
Added C functions UtcFromTime, TimeFromUtc.
...
These functions allow generating a Gregorian calendar date and time
in UTC from an astro_time_t, and vice versa.
This filled in a gap where we needed a way to transform an astronomy
time value into something a user would recognize.
I may have to revisit this later for compatibility with the <time.h>
standard library, etc.
2019-05-25 15:31:45 -04:00
Don Cross
576c1d8d56
Starting to add C to documentation.
2019-05-24 20:51:18 -04:00
Don Cross
1c67f64655
Added C lunar apsis test to Windows unit tests.
2019-05-24 19:38:11 -04:00
Don Cross
821e89e10b
Validated C functions SearchLunarApsis, NextLunarApsis.
2019-05-24 19:29:31 -04:00
Don Cross
ba7814df4d
Added protection from infinite loops in JS, C versions of SearchLunarApsis.
...
I made sure it is not possible to get stuck in an infinite
loop inside SearchLunarApsis, both the C and JavaScript versions.
If we loop over more time than 2 synodic months (more than enough time),
bail out with an exception (JS) or an internal error (C).
2019-05-24 17:21:04 -04:00
Don Cross
74dd133391
Implemented C function SearchLunarApsis, but not yet tested.
2019-05-24 16:58:03 -04:00
Don Cross
8cca72c959
Validated C function SearchPeakMagnitude.
2019-05-24 15:41:51 -04:00
Don Cross
8438086c3d
Fixed Linux build warning in ctest.c about possibly uninitialized variables.
2019-05-24 12:37:12 -04:00
Don Cross
6d6e161b53
Implemented C test for Saturn magnitude. Fixed bug in Astronomy_Ecliptic.
...
Astronomy_Ecliptic was using midnight on 2000-01-01 as the epoch,
but it should have been using noon. Fixed it. Discovered because
there was a tiny but larger than expected error in calculating
the tilt of Saturn's rings.
2019-05-23 21:47:15 -04:00
Don Cross
3c5c47d704
Implemented C function SearchMaxMagnitude, but not yet tested.
2019-05-23 19:44:32 -04:00
Don Cross
ab74212146
Validated C function Illumination.
2019-05-23 18:15:00 -04:00
Don Cross
d9d4ad67d9
Added C general purpose parser for JPL Horizons date format.
...
I will use this for magnitude unit tests, but should be useful
for other unit tests also.
2019-05-23 13:13:21 -04:00
Don Cross
9ed27be0f8
Work in progress: Adding C magnitude tests.
2019-05-23 12:05:18 -04:00
Don Cross
84d428d583
Implemented C function Illumination, but not tested yet.
2019-05-23 11:42:19 -04:00
Don Cross
c9b4434af2
Removed obsolete batch file.
2019-05-23 07:44:27 -04:00
Don Cross
4982da4307
Added unit tests for C functions SearchRiseSet, SearchHourAngle.
2019-05-22 13:44:46 -04:00
Don Cross
eef7900b65
Parsing rise/set data but not doing anything with it yet.
2019-05-21 21:46:42 -04:00
Don Cross
442b07b7c2
Work in progress: adding C riseset test.
2019-05-21 21:37:17 -04:00
Don Cross
04f79df33c
Minor tidying of output format in VSOP, Chebyshev searches.
2019-05-21 21:29:27 -04:00
Don Cross
329e78bca3
Updated C unit tests for Windows.
2019-05-21 21:18:26 -04:00
Don Cross
83d909751e
Implemented C function SearchRiseSet, but not yet implemented.
2019-05-21 21:09:59 -04:00
Don Cross
9dfc3dee69
Implemented C function SearchHourAngle, but not yet tested.
2019-05-21 20:17:59 -04:00
Don Cross
a81c214514
CheckTestOutput no longer prints summaries when there is only one body row.
2019-05-21 19:53:46 -04:00
Don Cross
608d0c6477
JS output files in temp directory now all begin with js_.
2019-05-21 19:45:39 -04:00
Don Cross
dbd8c60e15
Added more unit tests for C function SearchRelativeLongitude.
2019-05-21 17:16:44 -04:00
Don Cross
86dad96ef0
Validated C functions: EclipticLongitude, SearchMaxElongation, SearchRelativeLongitude, Elongation, AngleFromSun.
...
Also realized I was only verifying JS max elongation angles to be within 1 degree.
Tightened that to 4 arcmin.
2019-05-21 16:22:51 -04:00
Don Cross
bc3f4513e8
Forgot to increment line number in TestElongFile.
2019-05-21 15:24:54 -04:00
Don Cross
09fc1a5d4d
Updated comments.
2019-05-21 15:21:18 -04:00
Don Cross
daf2dddcce
Validated C function SearchRelativeLongitude.
2019-05-21 15:20:18 -04:00
Don Cross
3557d3b8af
Implemented C functions EclipticLongitude, SearchMaxElongation, SearchRelativeLongitude.
...
Work in progress. Not yet tested.
2019-05-21 14:21:44 -04:00
Don Cross
76527b5453
Implemented C function Elongation, but not yet tested.
2019-05-21 12:37:20 -04:00
Don Cross
27058b85ee
Added time error verification for C unit tests of SearchMoonQuarter, NextMoonQuarter.
2019-05-21 12:17:34 -04:00
Don Cross
665be9c516
Fixed bug calculating moon phases in new C code.
2019-05-21 12:00:55 -04:00
Don Cross
80e4fb8b00
Work in progress: C functions SearchMoonQuarter, NextMoonQuarter.
2019-05-21 11:42:55 -04:00
Don Cross
020e12d8ce
C function SearchMoonPhase in progress. Refactored Search so functions can return errors.
2019-05-21 11:22:51 -04:00
Don Cross
fb99989231
Validated C functions MoonPhase, LongitudeFromSun, Ecliptic.
2019-05-21 10:27:12 -04:00
Don Cross
e798e1bb80
Work in progress: C moon phase unit test.
2019-05-21 10:17:59 -04:00
Don Cross
4513036af0
Added C function MoonPhase, but not tested yet.
2019-05-21 08:36:58 -04:00
Don Cross
bf92445e5a
Simplified moon_phase_test.js.
...
Call MoonPhase instead of doing the same calculations in the unit test.
This increases test coverage and eliminates redundant logic.
2019-05-21 08:34:23 -04:00
Don Cross
2a55fec838
Fixed bug causing bogus ctest failure.
2019-05-20 21:52:56 -04:00
Don Cross
d918c641d0
Fixed output filename js_check.txt
2019-05-20 21:48:53 -04:00
Don Cross
1ccfae71c8
Updated Windows run.bat for C seasons test.
2019-05-20 21:46:17 -04:00
Don Cross
4ac847676a
Implemented C function LongitudeFromSun, but not tested yet.
2019-05-20 17:07:08 -04:00
Don Cross
10aa2d7317
Implemented C function Ecliptic, but not tested yet.
2019-05-20 16:51:53 -04:00
Don Cross
aacc680b0e
Implemented C function AngleFromSun, but not tested yet.
2019-05-20 16:41:54 -04:00
Don Cross
9e9b9420f3
Implemented unit test for C function Seasons.
...
This also validates the Search function and Sun longitude calculation.
2019-05-20 16:00:21 -04:00