Moon Rover - Synchronize cFS Time with Linux Host OS #446
-
Hello, How do I synchronize the cFS time to that of the host Linux OS so that the time on the lander and the time in cFS are roughly the same? Should I be doing this by just updating the STCF? This does not seem to be the right way, and I cannot find anything helpful in time.h or osapi-os-core.h. Also, where is the MET tracked on a Linux system? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Typical approach is to set For MET on Linux as long as |
Beta Was this translation helpful? Give feedback.
-
@skliper Not sure I understand how I can use
Thanks! |
Beta Was this translation helpful? Give feedback.
Typical approach is to set
CFE_PLATFORM_TIME_CFG_SOURCE
andCFE_PLATFORM_TIME_CFG_SRC_TIME
both true and then add an app that samples Linux OS time and callsCFE_TIME_ExternalTone
andCFE_TIME_ExternalTime
periodically.For MET on Linux as long as
CFE_PLATFORM_TIME_CFG_VIRTUAL
is true, the MET is simulated via an internal timer. SeeCFE_TIME_Global.VirtualMET
.