Open ts826848 opened 9 years ago
It should be possible to have it be based on the active site or even the closest site. Currently it just checks what the coordinates of the "SpaceCenter" entity are. It should be possible to poll RSS to get the coordinates of all the other sites, or at least the active site.
Ran into this again, but I noticed that the behavior changed somewhat, so I don't know whether it's still a SR issue.
Recovery distances are still off, but it appears to be by a consistent few thousand km no matter where the launch site is. For example, for the kick stage of a sounding rocket launched straight up from:
Cape Canaveral:
[LOG 22:35:06.378] [SR] Vessel Lat/Lon: 28.6083696440846/-80.599759704292
72838
[LOG 22:35:06.379] [SR] KSC Lat/Lon: -1.74275413120142/-75.8217321223841
[LOG 22:35:06.379] [SR] Distance: 3413144
[LOG 22:35:06.381] [SR] Stage was recovered. Distance: 3413.14km, Altitude: 563m
Vandenberg:
[LOG 23:08:51.939] [SR] Vessel Lat/Lon: 34.5812768177011/-120.62171711918
[LOG 23:08:51.939] [SR] KSC Lat/Lon: 9.96542527533581/-134.543347556439
[LOG 23:08:51.939] [SR] Distance: 3081365
[LOG 23:08:51.939] [SR] Stage was recovered. Distance: 3081.36km, Altitude: 668m
Xichang, in China:
[LOG 23:22:57.800] [SR] Vessel Lat/Lon: 28.2464414435273/102.032693109624
[LOG 23:22:57.800] [SR] KSC Lat/Lon: 58.0324102341433/90.3743450917264
[LOG 23:22:57.800] [SR] Distance: 3433435
[LOG 23:22:57.800] [SR] Stage was recovered. Distance: 3433.44km, Altitude: 2396m
Baikonur
[LOG 23:36:44.592] [SR] Vessel Lat/Lon: 45.9202541024294/63.3480015613022
[LOG 23:36:44.592] [SR] KSC Lat/Lon: 64.0497446479226/85.9700986744096
[LOG 23:36:44.592] [SR] Distance: 2450523
[LOG 23:36:44.592] [SR] Stage was recovered. Distance: 2450.52km, Altitude: 920m
I have no clue where the KSC coordinates are being pulled from, unfortunately... Vessel coordinates appear to be correct, though.
So at this point, I don't know whether it's a SR problem, or a KSCSwitcher/RSS/Kopernicus problem, for not having SpaceCenter.Instance
spitting out the right coordinates. What do you think?
I usually play with the RO set of mods, and when hopping around launch sites, I noticed that some launch sites have massively reduced distance modifiers compared to others.
For example, the Cape Canaveral launch site gets "normal" recovery rates (I think?), like you would at the stock KSC. The MH - Omelek site, however, gets recovery rates of ~47.1% if the part is even the smallest bit off of KSC grounds. The Chinese sites get even worse rates (~20something%, I think?)
Is it possible to do distance calculations based on the currently selected KSC, rather than the default KSC?