Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 11-04-2018, 04:07   #1
Registered User

Join Date: Apr 2018
Posts: 4
OpenCPN and Arduboat

Hello,
is it possible to integrate OpenCPN with ArduBoat software (acting as helmsman) via MAVlink or Serial connection?
Thank you
Anelito is offline   Reply With Quote
Old 12-04-2018, 15:31   #2
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: OpenCPN and Arduboat

ardu boat is not really designed for sailboats.

I use pypilot and have good integration with opencpn.
seandepagnier is offline   Reply With Quote
Old 13-04-2018, 01:00   #3
Registered User

Join Date: Apr 2018
Posts: 4
Re: OpenCPN and Arduboat

Quote:
Originally Posted by boat_alexandra View Post
ardu boat is not really designed for sailboats.

I use pypilot and have good integration with opencpn.

Actually, I would like to use it on a kayak so it's okay for basic steering and speed control. Does OpenCPN accept MAVlink inputs or do I need to get GPS and heading messages from ArduPilot and reroute to OpenCpn in NMEA0183 format?
Anelito is offline   Reply With Quote
Old 13-04-2018, 05:47   #4
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: OpenCPN and Arduboat

OpenCPN accepts NMEA data. It can be via wifi using either UDP or TCP or it can be via a GPSD (GPSd - Put your GPS on the net!) daemon running on the local computer.
transmitterdan is offline   Reply With Quote
Old 13-04-2018, 06:08   #5
Registered User

Join Date: Apr 2018
Posts: 4
Re: OpenCPN and Arduboat

Quote:
Originally Posted by transmitterdan View Post
OpenCPN accepts NMEA data. It can be via wifi using either UDP or TCP or it can be via a GPSD (GPSd - Put your GPS on the net!) daemon running on the local computer.
Are there other input systems, such as inter-process communication, a message bus or accessible APIs?
Because I receive GPS and heading info from the ardupilot on a Raspberry Pi (also running OpenCPM) via MAVlink and process them for remote logging reasons. Then I should convert from plaintext to NMEA and feed to OpenCPN, but how?
Thank you
Anelito is offline   Reply With Quote
Old 13-04-2018, 06:30   #6
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: OpenCPN and Arduboat

What are you doing? I am interested.

What do you need opencpn for, and why an autopilot on a kayak?

I recommend using pypilot again, because it's already integrated and targeted for opencpn use. arduboat is mostly for remote control and very small boats in lakes, so understandably you fall somewhere between these two. If we had more details it would help.
seandepagnier is offline   Reply With Quote
Old 13-04-2018, 06:31   #7
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: OpenCPN and Arduboat

The simplest input to OpenCPN is using UDP on a prearranged port number. You can tell OpenCPN to listen on a certain port and any NMEA message sent to that port will be decoded by OpenCPN.

I guess you will have to write a program (Python would be easiest I think) to convert the MAVlink data to NMEA-0183 format. Then send that data via UDP to the port OpenCPN is configured to listen on. I have a Python program that reads an NMEA text file and sends the messages to a TCP or UDP port. It could be a starting point for such a task. The difference would be instead of reading a text file it would read in the MAVlink data and reformat it into NMEA-0183. See https://github.com/transmitterdan/vdrplayer.
transmitterdan is offline   Reply With Quote
Old 13-04-2018, 08:17   #8
Registered User

Join Date: Apr 2018
Posts: 4
Re: OpenCPN and Arduboat

Quote:
Originally Posted by boat_alexandra View Post
What are you doing? I am interested.

What do you need opencpn for, and why an autopilot on a kayak?

I recommend using pypilot again, because it's already integrated and targeted for opencpn use. arduboat is mostly for remote control and very small boats in lakes, so understandably you fall somewhere between these two. If we had more details it would help.
I am building an autopilot for (small) motor boats and I will extend to sailboats in the future. Arduboat takes care of waypoint navigation as helmsman (or totally in case of power failure), while Raspberry Pi performs obstacle detection and avoidance using a camera for nearby obstacles and route planning using AIS, coastal charts, tide and weather data. Now, for route planning I was checking out OpenCPN, and in any case, it is also useful to have the route displayed on a screen.

To perform testing I use a kayak equipped with a small trolling motor and a linear actuator for automatic steering.
Anelito is offline   Reply With Quote
Old 13-04-2018, 16:32   #9
Registered User

Join Date: Feb 2011
Location: Virginia
Boat: Shopping for a 30-ish cat
Posts: 418
Re: OpenCPN and Arduboat

Are there any threads here on cruisersforum for pypilot?
prof_mariner is offline   Reply With Quote
Old 22-04-2018, 13:50   #10
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
Re: OpenCPN and Arduboat

Quote:
Originally Posted by prof_mariner View Post
Are there any threads here on cruisersforum for pypilot?
Please use the forum tools given to you. "Search this Forum" by thread or post.

Pypilot thread is here
http://www.cruisersforum.com/forums/...ot-199337.html

This is a Beta Plugin and the Manual is here
rgleason is offline   Reply With Quote
Reply

Tags
boat, enc, opencpn


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Synchronize Routes between OpenCPN Desktop and OpenCPN Android Tablets bgs OpenCPN 2 13-03-2016 19:47
OpenCPN, Linux, Web site opencpn.org, user manual and manual wiki ... Gilletarom OpenCPN 26 30-11-2015 15:17
Request that Android OpenCPN.apk Open Source version be put up in the OpenCPN.org Dow yachtmanforfun OpenCPN 18 20-09-2015 06:00
Virtual OpenCPN - 'OpenCPN on a Stick' r.fairman OpenCPN 23 16-10-2011 19:51

Advertise Here


All times are GMT -7. The time now is 10:05.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.