Trajectory Calculation Issues
Simulation position and velocity of Sun, Earth, and Moon bodies brings errors. An attempt was done to use NASA’s data – some of DEXXX files are available. Minor errors were fixed in the C version of the code (convert.c) done by David Hoffman from a NASA Jonson Space Center. Looks like porting code from Fortran was a source of errors. Some memory was corrupted around R1 and R2 constant (array of 400 elements initialized, but line “for ( i=0 ; i<=400 ; i++)” need to change condition to “i<400 ;”. Also, another memory corruption around “val” variable - ARRAY_SIZE assigned to 1018 – but in assigning “val” operator “if (3*i+1 > recSize) break;“ has to be changed to “if (3*i+1 >= recSize) break;”. Additional for Windows function “fopen” require “outfile = fopen(argv[3], “wb”);” and in module ephem_read.c “Ephemeris_File = fopen(fileName, “rb”);”.
Further information at http://adobri.com/ProjectTra.aspx
Comments powered by RealTidBits and Echo
Team Blog Posts
May 3, 2012
April 12, 2012
April 11, 2012







Subscribe to this Blog
Exploration Prize Group Presented by 