Beispiel #1
0
 def cmd_start(self):
     '''start ntrip link'''
     if self.ntrip_settings.caster is None:
         print("Require caster")
         return
     if self.ntrip_settings.mountpoint is None:
         print("Require mountpoint")
         return
     if self.pos is None:
         print("Start delayed pending position")
         self.start_pending = True
         return
     user = self.ntrip_settings.username + ":" + self.ntrip_settings.password
     self.ntrip = ntrip.NtripClient(
         user=user,
         port=self.ntrip_settings.port,
         caster=self.ntrip_settings.caster,
         mountpoint=self.ntrip_settings.mountpoint,
         lat=self.pos[0],
         lon=self.pos[1],
         height=self.pos[2])
     print("NTRIP started")
     self.start_pending = False
     self.last_rate = time.time()
     self.rate_total = 0
Beispiel #2
0
 def cmd_start(self):
     '''start ntrip link'''
     if self.ntrip_settings.caster is None:
         print("Require caster")
         return
     if self.ntrip_settings.mountpoint is None:
         print("Require mountpoint")
         return
     if self.pos is None:
         print("Require position first")
         return
     user = self.ntrip_settings.username + ":" + self.ntrip_settings.password
     self.ntrip = ntrip.NtripClient(
         user=user,
         port=self.ntrip_settings.port,
         caster=self.ntrip_settings.caster,
         mountpoint=self.ntrip_settings.mountpoint,
         lat=self.pos[0],
         lon=self.pos[1],
         height=self.pos[2])