Beispiel #1
0
    while True:

        # Acquire human input and update commands
        hdcsCmd = hdcs.transceive_and_parse(State)
        hacsCmd = hacs.update(State)

        if hdcsCmd:
            Command.update(hdcsCmd)
            print('hdcs cmd update! >>', hdcsCmd)

        if hacsCmd != {}:
            Command.update(hacsCmd)
            print('hacs cmd update! >>', hacsCmd)

        # ADCS Command Actions
        act.Cmd(Command, State)

        # Micro Command Actions -> Update State
        state.Generator(State, micro.Microevent(Command, State, show=1),
                        micro.order)

        # Telemetry State Update
        if inhibit != 'n2o':
            state.Telemetry(State, [n2o], verbose=0)

        # ADCS Auto Command Actions
        act.Auto(Command, State, inhibit)

        log.Commit()