Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-09-2013, 03:30   #1
Registered User
 
phiggins's Avatar

Join Date: Nov 2004
Location: Toronto, Canada
Posts: 1,288
Send a message via Skype™ to phiggins
Ship Color on low accuracy charts

On a low accuracy chart when the GPS is valid I believe the color of the ship should be yellow but its grey. See the attachment.

The code seems to indicate it should be yellow:

In CHCANV.cpp..

wxColour pred_colour;
pred_colour = GetGlobalColor ( _T ( "URED" ) );
if(SHIP_NORMAL != m_ownship_state)
pred_colour = GetGlobalColor ( _T ( "GREY1" ) );

// Establish ship color
// It changes color based on GPS and Chart accuracy/availability
wxColour ship_color(GetGlobalColor ( _T ( "URED" ))); // default is OK

if(SHIP_NORMAL != m_ownship_state)
ship_color = GetGlobalColor ( _T ( "GREY1" ) );

if(SHIP_LOWACCURACY == m_ownship_state)
ship_color = GetGlobalColor ( _T ( "YELO1" ) );

The m_ownship_state is set in CHART1.cpp

if(cc1->GetQuiltMode())
{
double erf = cc1->GetQuiltMaxErrorFactor();
if(erf > 0.02)
cc1->SetOwnShipState(SHIP_LOWACCURACY);
}
else
{
if(Current_Ch)
{
if(Current_Ch->GetChart_Error_Factor() > 0.02)
cc1->SetOwnShipState(SHIP_LOWACCURACY);
}
}

This code in from V3.20 but the problem happens up to V3.3.19
Attached Thumbnails
Click image for larger version

Name:	Ship_Gray.jpg
Views:	75
Size:	252.1 KB
ID:	66413  
__________________
Paul,
" One moment you are running along, the next you are no more." Dean Spanley
phiggins is offline   Reply With Quote
Old 05-09-2013, 03:26   #2
Registered User
 
phiggins's Avatar

Join Date: Nov 2004
Location: Toronto, Canada
Posts: 1,288
Send a message via Skype™ to phiggins
Re: Ship Color on low accuracy charts

I did a debug session on V3.3.827 and found that the ship_color is being set to YELLOW when there is a low accuracy chart but ship_color is only used if the ship is a Real Scale Vector map.

Be nice if ship_color was set for the default ship and a Real Scale Bitmap to be consistent to warn the user of a low accuracy chart.
__________________
Paul,
" One moment you are running along, the next you are no more." Dean Spanley
phiggins is offline   Reply With Quote
Reply

Tags
charts, paracelle

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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


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.