Bi-monthly release with minor bug fixes and improvements
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
// Loop dawn and dusk calculation until the events found are the next events
for ( ; dawn <= startup || dusk <= startup ; midnight = midnight.addDays(1))
{
// Forcefully set midnight to local time, as addDays returns to UTC
midnight.setTimeSpec(Qt::LocalTime);
// KSAlmanac computes the closest dawn and dusk events from the local sidereal time corresponding to the midnight argument
KSAlmanac const ksal(midnight, getGeo());
// If dawn is in the past compared to this observation, fetch the next dawn
if (dawn <= startup)
dawn = getGeo()->UTtoLT(ksal.getDate().addSecs((ksal.getDawnAstronomicalTwilight() * 24.0 + Options::dawnOffset()) * 3600.0));
// If dusk is in the past compared to this observation, fetch the next dusk
if (dusk <= startup)
dusk = getGeo()->UTtoLT(ksal.getDate().addSecs((ksal.getDuskAstronomicalTwilight() * 24.0 + Options::duskOffset()) * 3600.0));
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.