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
Getting wind data into Pypilot
#17
The message about too long to write is not harmful if it occurs during startup or rarely. It does occur normally during startup.

If it constantly occurs all the time, it is an indication that pypilot processes are getting stuck in system calls trying to send data around and this can impact the ability to calculate things and make the autopilot work. So unfortunately its not really a bug in pypilot although perhaps things could be improved to mitigate the issue, but it is a limitation of the platform. If you get this too much and can disconnect things and simplify the setup, please let me know what caused it.

I dont think pypilot connects to your victron. It may list it and probe it (pypilot doesnt know if the victron has a signalk server... if it did have one, it could use it but it shouldnt cause issue)

You are using a setup I dont have a way to test personally which explains why there could be issues. It seems your wind data is n2k, and getting converted to signalk somehow. There is never any nmea0183 for wind. This should be "ok" but obviously it is not working for you. With signalk you cannot use opencpn to forward data, it can only forward nmea0183. So in this case you would have to rely on the direct connection from pypilot to signalk.

If you are not able to get wind data in opencpn from signalk either.. I am speculating that perhaps the bug is in converting n2k to signalk itself? The only code in OpenCPN that processes signalk wind data is the dashboard plugin, so dont expect anything else to work.

It also maybe possible to get the signalk server to output nmea0183. In this case you could feed this into pypilot/opencpn, but it is not the preferred method. I would like to improve pypilot, so it may be something simple and inconsistent.

Wind data updating every 10 seconds is not good enough for autopilot to steer to wind in my opinion, and without improving the output rate, I would not expect good results. pypilot will timeout data sources after 4 seconds.... so that it can switch to compass mode or gps depending on other factors. My wind sensors output 10 or 20 times per second, but generally you need at least 1 output per second for reasonable autopilot use. You could mod pypilot to not timeout after 4 seconds and perhaps get marginal results, but its not a good change for everyone.

If you can modify the signalk.py and uncomment the #print line in the debug definition, it will print much more information regarding signalk. Sometimes the signalk format changes, or it can't parse it somehow, and if its a case I have not produced then its likely to cause a problem. It seems that you are getting gps into pypilot via tcp, so you have nmea0183 for gps, just not wind.

Let me know what you find, and I think we can get this working so I am really interested to know the exact cause of the issue.
Reply


Messages In This Thread
Getting wind data into Pypilot - by kniven - 2022-08-12, 07:53 AM
RE: Getting wind data into Pypilot - by kniven - 2022-08-15, 02:52 PM
RE: Getting wind data into Pypilot - by ironman - 2022-08-13, 10:40 AM
RE: Getting wind data into Pypilot - by ironman - 2022-08-15, 04:38 PM
RE: Getting wind data into Pypilot - by kniven - 2022-08-15, 07:42 PM
RE: Getting wind data into Pypilot - by ironman - 2022-08-15, 11:44 PM
RE: Getting wind data into Pypilot - by kniven - 2022-08-16, 08:49 AM
RE: Getting wind data into Pypilot - by ironman - 2022-08-16, 09:45 AM
RE: Getting wind data into Pypilot - by kniven - 2022-08-16, 05:39 PM
RE: Getting wind data into Pypilot - by ironman - 2022-08-16, 06:21 PM
RE: Getting wind data into Pypilot - by ironman - 2022-08-16, 11:38 PM
RE: Getting wind data into Pypilot - by ironman - 2022-08-19, 06:32 PM
RE: Getting wind data into Pypilot - by kniven - 2022-08-17, 07:29 AM
RE: Getting wind data into Pypilot - by kniven - 2022-08-19, 08:10 AM
RE: Getting wind data into Pypilot - by seandepagnier - 2022-08-19, 01:38 PM
RE: Getting wind data into Pypilot - by kniven - 2022-08-20, 06:52 AM
RE: Getting wind data into Pypilot - by kniven - 2022-08-22, 07:56 AM
RE: Getting wind data into Pypilot - by kniven - 2022-08-22, 09:47 AM
RE: Getting wind data into Pypilot - by ironman - 2022-08-22, 12:57 PM
RE: Getting wind data into Pypilot - by kniven - 2022-08-22, 01:53 PM
RE: Getting wind data into Pypilot - by ironman - 2022-08-22, 03:31 PM
RE: Getting wind data into Pypilot - by kniven - 2022-08-23, 07:47 AM
RE: Getting wind data into Pypilot - by ironman - 2022-08-23, 10:44 AM
RE: Getting wind data into Pypilot - by kniven - 2022-08-27, 11:15 AM
RE: Getting wind data into Pypilot - by ironman - 2022-08-28, 01:29 PM
RE: Getting wind data into Pypilot - by kniven - 2022-08-27, 06:32 PM
RE: Getting wind data into Pypilot - by kniven - 2022-08-28, 05:42 PM
RE: Getting wind data into Pypilot - by ironman - 2022-08-29, 12:32 AM
RE: Getting wind data into Pypilot - by kniven - 2022-08-29, 06:30 PM
RE: Getting wind data into Pypilot - by stelian - 2022-09-04, 05:32 PM
RE: Getting wind data into Pypilot - by stelian - 2022-09-04, 06:08 PM
RE: Getting wind data into Pypilot - by stelian - 2022-09-04, 07:55 PM
RE: Getting wind data into Pypilot - by stelian - 2022-09-04, 09:09 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)