Esempio n. 1
0
 def init_rc_comms(self):
     port = self.getAppArg('port')
     comms = comms_factory(port)
     rc_api = self._rc_api
     rc_api.detect_win_callback = self.rc_detect_win
     rc_api.detect_fail_callback = self.rc_detect_fail
     rc_api.detect_activity_callback = self.rc_detect_activity
     rc_api.init_comms(comms)
     rc_api.run_auto_detect()
Esempio n. 2
0
 def init_rc_comms(self):
     port = self.getAppArg('port')
     comms = comms_factory(port)
     rc_api = self._rc_api
     rc_api.detect_win_callback = self.rc_detect_win
     rc_api.detect_fail_callback = self.rc_detect_fail
     rc_api.detect_activity_callback = self.rc_detect_activity
     rc_api.init_comms(comms)
     rc_api.run_auto_detect()
Esempio n. 3
0
    def init_rc_comms(self):
        port = self.getAppArg('port')
        conn_type = self.settings.userPrefs.get_pref('preferences', 'conn_type', default=None)

        cli_conn_type = self.getAppArg('conn_type')

        if cli_conn_type:
            conn_type = cli_conn_type

        Logger.info("RaceCaptureApp: initializing rc comms with, conn type: {}".format(conn_type))

        comms = comms_factory(port, conn_type)
        rc_api = self._rc_api
        rc_api.detect_win_callback = self.rc_detect_win
        rc_api.detect_fail_callback = self.rc_detect_fail
        rc_api.detect_activity_callback = self.rc_detect_activity
        rc_api.init_api(comms)
        rc_api.run_auto_detect()
Esempio n. 4
0
    def init_rc_comms(self):
        port = self.getAppArg('port')
        conn_type = self.settings.userPrefs.get_pref('preferences', 'conn_type', default=None)

        cli_conn_type = self.getAppArg('conn_type')

        if cli_conn_type:
            conn_type = cli_conn_type

        Logger.info("RaceCaptureApp: initializing rc comms with, conn type: {}".format(conn_type))

        comms = comms_factory(port, conn_type)
        rc_api = self._rc_api
        rc_api.detect_win_callback = self.rc_detect_win
        rc_api.detect_fail_callback = self.rc_detect_fail
        rc_api.detect_activity_callback = self.rc_detect_activity
        rc_api.init_api(comms)
        rc_api.run_auto_detect()