+// I don't yet fully understand all the gotchas about where to source time from.
+// This function sets the initial timer before the clock exports properties
+// and the one below uses the clock to be consistent with the rest of the code.
+// It might change soonish...
+void DCLGPS::SetPowerOnTimer() {
+ struct tm *t = globals->get_time_params()->getGmt();
+ _powerOnTime.set_hr(t->tm_hour);
+ _powerOnTime.set_min(t->tm_min);
+ _powerOnTimerSet = true;
+}
+
+void DCLGPS::ResetPowerOnTimer() {
+ _powerOnTime.set_hr(atoi(fgGetString("/instrumentation/clock/indicated-hour")));
+ _powerOnTime.set_min(atoi(fgGetString("/instrumentation/clock/indicated-min")));
+ _powerOnTimerSet = true;
+}
+