Hi, it looks like maybe that error was not the issue. How ever the time change was consistent, it kept updating current time -4 hours. Over time it would go back -8 or even -12 but then occasionally it re-synced to current time. I took an older commit and the problem was gone, hoe ever I was getting a bad key error, I tried inserting from one of your newer commits the fix for that which was in
pypilot/nmea.py
around 565
self.last_values = {'gps.source' : 'none', 'wind.source' : 'none', 'rudder.source': 'none', 'apb.source': 'none', 'water.source': 'none'}
After adding water.source it worked but GPS position was not working, it kept showing my boat near Africa. I then took the latest commit from master and removed this snippet and its working for me
pypilot/sensors.py
line 237
return self.nmea_sentence.value + ',' + self.gethhmmss() + ',A,' \
+ self.getddmmmmmm(lat, 'N', 'S') + ',' + self.getddmmmmmm(lon, 'E', 'W') \
+ ',%.2f,' % speed + '%.2f,' % (track if track > 0 else 360 + track) \
+ self.getddmmyy() + ',,,A'
After removing this return, I get no issues with my time updating. I am probably braking something but at least for now its working for me, which means, pypilot enabled, disabled, steers compass and GPS, and I can even follow route when its enabled with AVNAV.
pypilot/nmea.py
around 565
self.last_values = {'gps.source' : 'none', 'wind.source' : 'none', 'rudder.source': 'none', 'apb.source': 'none', 'water.source': 'none'}
After adding water.source it worked but GPS position was not working, it kept showing my boat near Africa. I then took the latest commit from master and removed this snippet and its working for me
pypilot/sensors.py
line 237
return self.nmea_sentence.value + ',' + self.gethhmmss() + ',A,' \
+ self.getddmmmmmm(lat, 'N', 'S') + ',' + self.getddmmmmmm(lon, 'E', 'W') \
+ ',%.2f,' % speed + '%.2f,' % (track if track > 0 else 360 + track) \
+ self.getddmmyy() + ',,,A'
After removing this return, I get no issues with my time updating. I am probably braking something but at least for now its working for me, which means, pypilot enabled, disabled, steers compass and GPS, and I can even follow route when its enabled with AVNAV.