nasa / astrobee

NASA Astrobee Robot Software
https://www.nasa.gov/astrobee
Apache License 2.0
1.05k stars 312 forks source link

Clock skew logging #168

Closed trey0 closed 3 years ago

trey0 commented 3 years ago

The system monitor already watches for MLP/LLP clock skew and raises a fault if it exceeds a threshold. In addition to fault checking, it would be useful to log the clock skew (i.e. log near-simultaneous timestamps between a pair of processors, so the skew can be estimated later). This could help with debugging and also with post-activity data analysis, such as correcting the skew to get better results. Skew correction might be beneficial even if the skew did not exceed the fault threshold.

Some considerations:

oleg-alexandrov commented 3 years ago

Strongly suggest keeping track of the HLP and LLP clock difference. Out of sync clocks is causing big issues in processing ISAAC data.

bcoltin commented 3 years ago

Marina added image time to log for isaac. Katie will look into logging more info about the fault for clock skew. Also implement for HLP.

trey0 commented 3 years ago

One approach for this is periodically logging simultaneous timestamps using SSH and the UNIX date command. PR for a draft script in NASA-internal repo at https://babelfish.arc.nasa.gov/bitbucket/projects/ASTROBEE/repos/astrobee_ops/pull-requests/3/overview