albar965 / littlenavmap

Little Navmap is a free flight planner, navigation tool, moving map, airport search and airport information system for Flight Simulator X, Microsoft Flight Simulator 2020, Prepar3D and X-Plane.
https://albar965.github.io/littlenavmap.html
GNU General Public License v3.0
1.23k stars 161 forks source link

Sun shading seems to be later than reality #1125

Closed malaise closed 1 month ago

malaise commented 2 months ago

LNM is connected to XP11, which is in real time. It is 18:15 local time CEST and 16:15 GMT, so we are far from the sunset. Still, LNM shows that we are in the night. Night

malaise commented 2 months ago

Well, this seems to be fixed after starting a new flight (without restarting XP11) So this is probably a defect in XP11 NightOk

albar965 commented 2 months ago

I'll check but I've not seen a problem so far.

LNM will use current UTC but switch to simulator date and time as soon as it is connected and aircraft is loaded. Maybe this was the issue?

malaise commented 1 month ago

Well this is quite reproducible Night1 I close and restart LNM with no success. And yes, I checked that XP11 was set to follow real time.

malaise commented 1 month ago

And some minutes later this is correct! NightOk

albar965 commented 1 month ago

Still cannot reproduce it, sry.

Starting LNM with View -> Sun Shading Time -> Simulator time. Shading is correct. Start X-Plane with real time tracking and LNM connects. Shading does not change and is still correct.

I'll keep an eye on it.

malaise commented 1 month ago

Me too. For the general scenario: I can clarify that I start LNM and then XP11 in the morning, I don't stop them, and I observe the problem in the evening. I will try to identify if the lag is present at the beginning of if it develops progressively.

albar965 commented 1 month ago

Thanks for the hint @malaise . I'll check if there is something going wrong over time. I'm already suspecting Marble not updating properly.

malaise commented 1 month ago

This evening the problem occurred again (despite I restarted XP11 at noon). LNM shading was approx 2-3 hours later that expected. Unfortunately I didn't capture the issue. But I restarted LNM and the shift was even worth, approx 6hours (capture attached). Restart

malaise commented 1 month ago

I disconnect LNM from XP11 and the shading becomes correct. I reconnect it and the shading is wrong gain (as the attachment above).

albar965 commented 1 month ago

I'll check this but for now I'd like to finish another task.

albar965 commented 1 month ago

Attempt to fix but could never reproduce it.