mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-06 16:58:48 +08:00
fixed display time now, needed pause offsets added in, timing seems to work now for time factors greater AND smaller than 1.0
This commit is contained in:
committed by
Felix Ruess
parent
2de9b81ed1
commit
1fb91b577e
@@ -170,6 +170,7 @@ static gboolean nps_main_periodic(gpointer data __attribute__ ((unused))) {
|
||||
t2 = time_to_double(&tv_now);
|
||||
/* add the pause to initial real time */
|
||||
irt += t2 - t1;
|
||||
nps_main.real_initial_time += t2 - t1;
|
||||
/* convert to scaled initial real time */
|
||||
nps_main.scaled_initial_time = t2 - (t2 - irt)/nps_main.host_time_factor;
|
||||
pauseSignal = 0;
|
||||
|
||||
Reference in New Issue
Block a user