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 09-11-2020, 01:30   #1
Registered User

Join Date: Nov 2020
Posts: 6
Modify APB sentence Frequency

Hi everybody,


Is it possible to tune the APB sentence frequency send by openCPN via Serial Communication? I saw that the default frequency is 1Hz but I didn't find a setting to modify it.


Thanks!
keuponTed is offline   Reply With Quote
Old 09-11-2020, 07:31   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,396
Re: Modify APB sentence Frequency

keuponTed...
The 1 Hz APB frequency is hard coded.
Can you tell us more about your requirement for faster (or slower?) APB output?


Thanks
Dave
bdbcat is online now   Reply With Quote
Old 10-11-2020, 01:19   #3
Registered User

Join Date: Nov 2020
Posts: 6
Re: Modify APB sentence Frequency

Thanks for the answer Dave.


I am developing my own autopilot and I use APB sentence to receive the route to follow (autopilot order). To detect the end of a route, I am using a timeout on APB sentence : when I don't receive it during 2s (2 APB frames), I stop my autopilot.


I would like to increase the APB frequency to reduce the timeout duration of my timer.


I hope it is sufficiently clear.
--

Ted
keuponTed is offline   Reply With Quote
Old 10-11-2020, 02:39   #4
Registered User

Join Date: Mar 2011
Posts: 650
Re: Modify APB sentence Frequency

To detect the end of a route, why not use APB sentence fields 6 or 7 for the purpose they were intended ?
stevead is offline   Reply With Quote
Old 10-11-2020, 04:38   #5
Registered User

Join Date: Nov 2020
Posts: 6
Re: Modify APB sentence Frequency

Dear Stevead,


Fields 6 and 7 of the APB sentence only give arrival to the target waypoint but what I need is the end of a route (multiple waypoints). So with these fields, I can't determine if I am at the end of the route or if I just reach one of the waypoints.


I see another solution which is to send the route to my autopilot with WPL sentences, but I have to make a lot of modifications on my autopilot software.


Best,
--

Ted
keuponTed is offline   Reply With Quote
Old 10-11-2020, 04:40   #6
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,735
Re: Modify APB sentence Frequency

From the definition of APB:
Attached Thumbnails
Click image for larger version

Name:	Captura de pantalla 2020-11-10 a las 13.37.40.png
Views:	53
Size:	72.2 KB
ID:	226683  
bcn is offline   Reply With Quote
Old 10-11-2020, 05:10   #7
Registered User

Join Date: Nov 2020
Posts: 6
Re: Modify APB sentence Frequency

Dear Bcn,


Please read my previous post.


I explained why I can't use these fields...


Best,

--

Ted
keuponTed is offline   Reply With Quote
Old 11-11-2020, 11:28   #8
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Modify APB sentence Frequency

What is the name of your autopilot?


It is not sensible to "timeout" for lack of APB, in this case it is expected the autopilot will hold the current route until such time another apb message is received.


the autopilot route plugin offers many more options for APB message generation compared to the core opencpn



a 1hz rate is adequate for nearly all applications, you would need a very agile or fast boat to benefit from higher rates.
seandepagnier is offline   Reply With Quote
Old 12-11-2020, 00:25   #9
Registered User

Join Date: Nov 2020
Posts: 6
Re: Modify APB sentence Frequency

Dear Seandepagnier,


The autopilot is a home made conception. I implemented a time out on APB sentence to know when I reach the end of the route.



I need metric precision for what I want to do, so 1 or 2 seconds at 5knots is prohibitive for my application.



The autopilot route plugin seems promising, but there is some issues with it :

- You can not see the actual target WP (blink in red/yellow in std OpenCPN)
- The range field in APB or RMB is not correctly fill.


Thanks!
--

Ted'
keuponTed is offline   Reply With Quote
Old 12-11-2020, 11:17   #10
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,735
Re: Modify APB sentence Frequency

Ted..


as your application is "private" you might add a "dummy endpoint" to your route beyond the real end WP, with some special WP-ID like "end-of-route" or "9999999999", parsing for that to identify that you passed the final WP.


Out of curiosity: how do you achieve sub meter precision for position? Differential corrections in real time? From where? What type of GNSS receiver?



hubert
bcn is offline   Reply With Quote
Old 16-11-2020, 00:14   #11
Registered User

Join Date: Nov 2020
Posts: 6
Re: Modify APB sentence Frequency

Dear bcn,


Thanks you very much for your answer. Create a dummy endpoint could be a good solution but I would like something "user-friendly" to create a new route. And I think, create new route and add a dummy way-point at the end is not an automatic procedure.


For sub-meter position, you could use differential or RTK GPS. For example, you have the hemisphere A222 which could work in DGNSS or RTK.


Ted'
keuponTed is offline   Reply With Quote
Reply

Tags
enc


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
wave frequency, rolling frequency? er9 Seamanship & Boat Handling 6 14-09-2017 12:11
NEMA APB Sentence only with True not with Magnetic Bearing ? Hobiell OpenCPN 7 03-07-2014 14:39
Modify Car A/C for Use on Sailboat - Thoughts? Fishman_Tx Plumbing Systems and Fixtures 49 16-08-2009 14:55
Modify Mast Step? palagic456 Construction, Maintenance & Refit 1 12-05-2009 11:00
Modify ferro cockpit hooked on water Construction, Maintenance & Refit 2 15-02-2008 00:28

Advertise Here


All times are GMT -7. The time now is 17:09.


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.