From 6291788d879ab876d29978a7e74ba09fc961a05b Mon Sep 17 00:00:00 2001 From: Eduardo Alonso Date: Mon, 21 Oct 2024 14:16:25 +0200 Subject: [PATCH] Fix TLETarget getPosition method Altitude multiplied by 1000 gave a wrong result. This is showing an incorrect position at rts2-targetinfo, although the telescope is able to observe it fine as it's getting the position from Telescope::calculateTLE --- lib/rts2db/tletarget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rts2db/tletarget.cpp b/lib/rts2db/tletarget.cpp index 4b13332f8..2043938d6 100644 --- a/lib/rts2db/tletarget.cpp +++ b/lib/rts2db/tletarget.cpp @@ -76,7 +76,7 @@ void TLETarget::getPosition (struct ln_equ_posn *pos, double JD) double r_s, r_c; - lat_alt_to_parallax (ln_deg_to_rad (observer->lat), obs_altitude * 1000, &r_c, &r_s); + lat_alt_to_parallax (ln_deg_to_rad (observer->lat), obs_altitude, &r_c, &r_s); observer_cartesian_coords (JD, ln_deg_to_rad (observer->lng), r_c, r_s, observer_loc);