Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-03-2015, 10: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, 16:07   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,320
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.

Statusbar Plugin

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

__________________
rgleason is offline   Reply With Quote
Old 05-03-2015, 02: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.

Statusbar Plugin

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

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

Join Date: Jan 2011
Posts: 571
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, 07:50   #5
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,320
Re: Feature request & implemention

useris, Thanks for posting in Tracker!
__________________
rgleason is offline   Reply With Quote
Old 05-03-2015, 10: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, 10: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, 12:05   #8
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
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 online now   Reply With Quote
Old 07-03-2015, 20:39   #9
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
Re: Feature request & implemention

This is a good feature to implement in a plugin.
__________________

__________________
boat_alexandra is offline   Reply With Quote
Reply

Tags
men

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 11:30
OpenCPN Bug Report / Feature Request Tracker bdbcat OpenCPN 37 09-10-2011 03:15
2.1.n Feature Request Discussion cagney OpenCPN 44 06-09-2010 06:00



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 18:14.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.