mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#COORDINATE - Fix is day/night for Kola locations when the sun either never rises or never sets.
This commit is contained in:
parent
5f9d4405b1
commit
f9f0a8e866
@ -2748,6 +2748,9 @@ do -- COORDINATE
|
|||||||
local sunrise=UTILS.GetSunRiseAndSet(DayOfYear, Latitude, Longitude, true, Tdiff)
|
local sunrise=UTILS.GetSunRiseAndSet(DayOfYear, Latitude, Longitude, true, Tdiff)
|
||||||
local sunset=UTILS.GetSunRiseAndSet(DayOfYear, Latitude, Longitude, false, Tdiff)
|
local sunset=UTILS.GetSunRiseAndSet(DayOfYear, Latitude, Longitude, false, Tdiff)
|
||||||
|
|
||||||
|
if sunrise == "N/R" then return false end
|
||||||
|
if sunrise == "N/S" then return true end
|
||||||
|
|
||||||
local time=UTILS.ClockToSeconds(clock)
|
local time=UTILS.ClockToSeconds(clock)
|
||||||
|
|
||||||
-- Check if time is between sunrise and sunset.
|
-- Check if time is between sunrise and sunset.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user