diff --git a/GPS_receiver.py b/GPS_receiver.py index a2793c7c7ac18c7a66f5854cb6d68656bcc9514f..799f8aec2423ca405ea7c404cfd70e44b452f8b0 100644 --- a/GPS_receiver.py +++ b/GPS_receiver.py @@ -5,6 +5,7 @@ import threading import pynmea2 #nmea message parser import sys from datetime import datetime +from time import sleep from global_vars import * @@ -44,6 +45,7 @@ def start_GPSthread(CONFIG): if ip_address != None: break if ip_address == None: raise Exception("Router not connected, shutting down!") + sleep(1) ServerAddress = (ip_address, GPS_poort) TCPServerInstance = socketserver.ThreadingTCPServer(ServerAddress, TCPReceiver) threading.Thread(target=TCPServerInstance.serve_forever).start() diff --git a/cfg/classification.yaml b/cfg/classification.yaml index 769388d52558331e12aaa0ea691f225f24e9ac73..5a21238c25b1024859bb5c857aa30590b809ae42 100644 --- a/cfg/classification.yaml +++ b/cfg/classification.yaml @@ -18,7 +18,7 @@ AGENSO: True save-GPS: True save-IMGS: True save-every-x: 10 #dont save all imgs & GPS coordinates, its simply to much -min-movement-frame: 0.1 #m between frames +min-movement-frame: 0.1 #M between GPS pulses (1 puls/2min) GPS-checks: False #enable/disable GPS moving checks to facilitate desk debugging #AGENSO diff --git a/cfg/classification_patches.yaml b/cfg/classification_patches.yaml index 2c21f4da1700cec256762a6f40e5280a26d158e6..85981d078557c805f7c72afb9375bd6cf9c112ef 100644 --- a/cfg/classification_patches.yaml +++ b/cfg/classification_patches.yaml @@ -18,7 +18,7 @@ AGENSO: True save-GPS: True save-IMGS: True save-every-x: 10 #dont save all imgs & GPS coordinates, its simply to much -min-movement-frame: 0.1 #m between frames +min-movement-frame: 0.1 #M between GPS pulses (1 puls/2min) GPS-checks: False #enable/disable GPS moving checks to facilitate desk debugging #AGENSO diff --git a/cfg/detection.yaml b/cfg/detection.yaml index 3255473a500663f1c733b93e55105daea67a7851..06c66747d79bfe0d38a73f388121dea76d20837f 100644 --- a/cfg/detection.yaml +++ b/cfg/detection.yaml @@ -18,7 +18,7 @@ AGENSO: True save-GPS: True save-IMGS: True save-every-x: 10 #dont save all imgs & GPS coordinates, its simply to much -min-movement-frame: 0.1 #m between frames +min-movement-frame: 0.1 #M between GPS pulses (1 puls/2min) GPS-checks: True #enable/disable GPS moving checks to facilitate desk debugging #AGENSO diff --git a/data_types.py b/data_types.py index 46f9d80b24f7957c91d3dfb0ee4d4988b07c10b1..f205de21b8f1d704450bdaa3f5f54dd1bd6d912a 100644 --- a/data_types.py +++ b/data_types.py @@ -115,7 +115,7 @@ class GPS_Ringbuffer: def set_min_frame_movement(self, min_movement_frame): self.min_movement = min_movement_frame * self.decdegr_to_m * self.size - self.min_movement_frame = min_movement_frame + self.min_movement_frame = min_movement_frame * self.decdegr_to_m #put new value in the rinngbuffer en update the values def put(self, nmea_GGA_msg, timestamp):