コード例 #1
0
ファイル: test_uav.py プロジェクト: suv1sh/spookystuff
    def test_canArmThroughProxy(self):
        connStr = self.url
        proxy = Proxy(connStr, ["udp:localhost:12052", self.gcs], self.dkBaud,
                      251, self.__class__.__name__)
        proxy.start()

        self.stressTestArm("udp:localhost:12052")
コード例 #2
0
ファイル: test_uav.py プロジェクト: suv1sh/spookystuff
    def test_downloadWaypointThroughProxyCannotTimeout(self):
        connStr = self.url
        proxy = Proxy(connStr, ["udp:localhost:12052", self.gcs], self.dkBaud,
                      251, self.__class__.__name__)
        proxy.start()

        self.stressTestDownloadWP("udp:localhost:12052")
コード例 #3
0
ファイル: test_uav.py プロジェクト: suv1sh/spookystuff
    def testProxyToNonExistingDrone(self):
        proxy = Proxy("udp:dummy:1000", ["udp:localhost:12052", self.gcs],
                      self.dkBaud, 251, self.__class__.__name__)

        try:
            proxy.start()
        except Exception as e:
            print(e)
            return
        else:
            raise os.error("IMPOSSIBLE!")
コード例 #4
0
ファイル: test_uav.py プロジェクト: suv1sh/spookystuff
    def testProxyRestart(self):

        proxy = Proxy(self.url, ["udp:localhost:12052", self.gcs], self.dkBaud,
                      251, self.__class__.__name__)

        for i in range(1, 3):
            proxy.start()
            proxy.stop()