Skip to content
Snippets Groups Projects
Commit a0504cff authored by Marko Mecina's avatar Marko Mecina
Browse files

add time tick packet script

parent b9932662
No related branches found
No related tags found
No related merge requests found
# Periodically send a PUS TC(9,128) time update packet in a background task
import threading
def timetick(period):
global t_updt
print('START TIMETICK')
while t_updt:
ObtTime = cfl.get_cuc_now()
cfl.Tcbuild('SASW TimeUpdt', ObtTime, pool_name='LIVE', ack=0, sleep=period)
print('STOP TIMETICK')
PERIOD = 1 # time tick period in seconds
t_updt = True
t = threading.Thread(target=timetick, args=[PERIOD])
t.start()
#! CCS.BREAKPOINT
t_updt = False
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment