ZeroOutSlewCalTime

Bases: KPFFunction

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(KPFFunction):
    '''Zero out the slew cal timer by setting it to the current timestamp.

    ### ARGS
    None
    '''
    @classmethod
    def pre_condition(cls, args):
        pass

    @classmethod
    def perform(cls, args):
        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):
        pass