Bases: KPFTranslatorFunction
Zero out the slew cal timer by setting it to the current timestamp.
ARGS
None
Source code in kpf/utils/ZeroOutSlewCalTime.py
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 | class ZeroOutSlewCalTime(KPFTranslatorFunction):
'''Zero out the slew cal timer by setting it to the current timestamp.
### ARGS
None
'''
@classmethod
def pre_condition(cls, args, logger, cfg):
pass
@classmethod
def perform(cls, args, logger, cfg):
log.debug('Updating LASTSLEWCAL time stamp to reset slew cal timer')
ktl.write('kpfconfig','LASTSLEWCAL', time.time(), binary=True)
@classmethod
def post_condition(cls, args, logger, cfg):
pass
|