joshuaferrara / go-satellite

Calculate orbital information of satellites in GoLang.
BSD 2-Clause "Simplified" License
78 stars 27 forks source link

More accurate look angles #9

Open mpielikis opened 4 years ago

mpielikis commented 4 years ago

There were some inaccuracies in time conversions and angle calculations that leaded in loosing several seconds on AOS and LOS times for ground station. Some of these changes breaks backward compatibility.

As a reference I used gPredict, pyorbital and sgp4

joshuaferrara commented 4 years ago

As a reference I used gPredict, pyorbital and sgp4

Some of the modified methods have citations in the comments prior to them, for example:

// Reference: The 1992 Astronomical Almanac, page K11.
func LLAToECI(obsCoords LatLong, alt, jday float64, gravConst GravConst) (eciObs Vector3) {

I think it'd be wise to update these comments to include where the algorithm modifications were ported from.