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 04-03-2015, 09:40   #1
Registered User

Join Date: Mar 2011
Posts: 39
Feature request & implemention

Hello,

I have feature request: display ship's position, course & speed near ship icon:

Add in ChartCanvas::ShipIndicatorsDraw function (chcanv.cpp file):

wxFont font;

wxFont* chart = FontMgr::Get().GetFont( _("Dialog"), 10 );
int font_size = wxMax(8, chart->GetPointSize());
font_size += chart->GetPointSize() - 10;

font_size = wxMin( font_size, 10 );
font_size = wxMax( font_size, 5 );

dc.SetFont( *chart );

wxString Name;
Name = wxString::Format(_T(""));
if( !wxIsNaN(gCog) && !wxIsNaN(gSog) ) {
Name << wxString::Format(_T(" LAT: ")) << toSDMM( 1, gLat )
<< wxString::Format(_T("\n LON: ")) << toSDMM( 2, gLon ) << wxString::Format(_T("\n"))
<< wxString::Format(_T(" COG: %03d° \n"), (int) gCog )
<< wxString::Format(_T(" SOG: %3.1f \n"), gSog );
} else { Name = wxString::Format(_T("NO DATA")); }


if ((gCog> 0) && (gCog < 100)) {
dc.DrawText(Name , lGPSPoint.x-15, lGPSPoint.y+20); }
else {
if ((gCog> 100) && (gCog < 120)) {
dc.DrawText(Name , lGPSPoint.x-10, lGPSPoint.y+15); }
else {
if ((gCog> 120) && (gCog < 230)) {
dc.DrawText(Name , lGPSPoint.x+15, lGPSPoint.y-25); }
else {
dc.DrawText(Name , lGPSPoint.x-10, lGPSPoint.y+25); } } }

useris is offline   Reply With Quote
Old 04-03-2015, 15:07   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Feature request & implemention

useris,
Nice. You could put that OpenCPN "Feature Request" into Tracker (along with the code) and ask for a Checkbox "Own Ship Data Shown" under Options > Ships > Own Ship or under Options > User Interface. You register here OpenCPN::Tracker Register new user and create a new Task under Project dropdown (to the left) with "Opencpn Feature Requests"

Have you tried Sean's Statusbar_pi Plugin, it puts any data you want along the bottom, size large enough to see.

http://www.cruisersforum.com/forums/...ml#post1474705

Also
https://github.com/seandepagnier/statusbar_pi
rgleason is offline   Reply With Quote
Old 05-03-2015, 01:15   #3
Registered User

Join Date: Mar 2011
Posts: 39
Re: Feature request & implemention

Quote:
Originally Posted by rgleason View Post
useris,
Nice. You could put that OpenCPN "Feature Request" into Tracker (along with the code) and ask for a Checkbox "Own Ship Data Shown" under Options > Ships > Own Ship or under Options > User Interface. You register here OpenCPN::Tracker Register new user and create a new Task under Project dropdown (to the left) with "Opencpn Feature Requests"

Have you tried Sean's Statusbar_pi Plugin, it puts any data you want along the bottom, size large enough to see.

http://www.cruisersforum.com/forums/...ml#post1474705

Also
https://github.com/seandepagnier/statusbar_pi

ok thank's
useris is offline   Reply With Quote
Old 05-03-2015, 05:06   #4
Registered User

Join Date: Jan 2011
Posts: 670
Re: Feature request & implemention

Quote:
Originally Posted by useris View Post

Hey, I immediately recognized your screenshot as being in the Delaware River, a couple miles from where i keep my boat. Is that your home port, or were you just passing through?

During the season I am at Anchorage Marina in Essington. Right now I'm on the hard at West End Boat Club.
RhythmDoctor is offline   Reply With Quote
Old 05-03-2015, 06:50   #5
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Feature request & implemention

useris, Thanks for posting in Tracker!
rgleason is offline   Reply With Quote
Old 05-03-2015, 09:13   #6
Registered User

Join Date: Mar 2011
Posts: 39
Re: Feature request & implemention

Quote:
Originally Posted by RhythmDoctor View Post
Hey, I immediately recognized your screenshot as being in the Delaware River, a couple miles from where i keep my boat. Is that your home port, or were you just passing through?

During the season I am at Anchorage Marina in Essington. Right now I'm on the hard at West End Boat Club.
Sorry, i just find file with ais strings in this forum as example...
useris is offline   Reply With Quote
Old 05-03-2015, 09:15   #7
Registered User

Join Date: Mar 2011
Posts: 39
Re: Feature request & implemention

Quote:
Originally Posted by rgleason View Post
useris, Thanks for posting in Tracker!
Your welcome, i have made more snippets like viewing ship's pictures in OpenCPN. So post it directly into tracker? Or here for revising
useris is offline   Reply With Quote
Old 05-03-2015, 11:05   #8
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,208
Re: Feature request & implemention

useris...
The best is of course creating pull requests against current master on github. If not that, the tracker. Here they get inevitably lost.

Pavel
nohal is offline   Reply With Quote
Old 07-03-2015, 19:39   #9
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Feature request & implemention

This is a good feature to implement in a plugin.
seandepagnier is offline   Reply With Quote
Reply

Tags
men


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
Route Information - for DR -Feature Request rgleason OpenCPN 1 13-09-2012 10:30
OpenCPN Bug Report / Feature Request Tracker bdbcat OpenCPN 37 09-10-2011 02:15
2.1.n Feature Request Discussion cagney OpenCPN 44 06-09-2010 05:00

Advertise Here


All times are GMT -7. The time now is 16:37.


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.