This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iteration running too slow
#2
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.
Reply


Messages In This Thread
iteration running too slow - by macr023 - 2022-04-04, 08:32 PM
RE: iteration running too slow - by macr023 - 2022-04-05, 02:15 PM
RE: iteration running too slow - by stelian - 2022-04-05, 08:45 PM
RE: iteration running too slow - by macr023 - 2022-04-05, 09:39 PM
RE: iteration running too slow - by seandepagnier - 2022-04-06, 01:38 AM
RE: iteration running too slow - by macr023 - 2022-04-06, 03:04 AM
RE: iteration running too slow - by seandepagnier - 2022-04-06, 06:18 AM
RE: iteration running too slow - by stelian - 2022-04-06, 09:02 AM
RE: iteration running too slow - by macr023 - 2022-04-06, 02:19 PM
RE: iteration running too slow - by stelian - 2022-04-06, 02:19 PM
RE: iteration running too slow - by macr023 - 2022-04-06, 04:03 PM
RE: iteration running too slow - by stelian - 2022-04-06, 04:11 PM
RE: iteration running too slow - by macr023 - 2022-04-06, 06:08 PM
RE: iteration running too slow - by stelian - 2022-04-06, 06:31 PM
RE: iteration running too slow - by seandepagnier - 2022-04-07, 02:14 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)