dodicat wrote:Hi lizard.
Got it working on 64 bit fb, but not on 32 bit fb.
right, i have tested now in windows 10 32 bit. It seems in windows the #define, #ifdefine and #include lines have another behaviour. In FbEdit some are red, others greyed out after a random pattern. Don't know what happens there, because i worked in Linux all the time. Sorry.
latitude and longitude are a bit confusing, is it not declination and hour angle (or right ascension) ?
The longitude bit seems degrees, the latitude bit seems a different unit.
This is described in detail in the programming manual from astro.com mentioned above.
Let me explain it in my own words as far i understood it...
The left two columns are in radians (decimal degrees) showing the longitude (distance on the ecliptic from 0 degree aries). The part left from the point must be divided by 30 to get the sign in which the planet is. The part right from the point must be divided by 60 to get the minutes. The rest must be divided again by 60 to get the seconds, so you end with something like this (example)
Taurus 12° 20' 33'' ( in degrees, minutes and seconds)
Similar with the second column, which shows the latitude. This can be around ~ 23° north or south from the ecliptic. Again the radians must be changed to degrees, minutes and seconds.
The third column shows the distance from earth, in astronomical units (AU), i believe.
The fourth column shows the speed, don`t know which units. :-)