Cruisers Forum

Join CruisersForum Today

Thread Tools Rate Thread Display Modes
Old 06-04-2013, 12:51   #1
Registered User

Join Date: Mar 2011
Posts: 39
Virtual AIS target


I want add manually AIS target (aka AIS simuliation).

ptarget = new AIS_Target_Data;
ptarget->Class = AIS_CLASS_A;
ptarget->MID = 3;
ptarget->MMSI = 857961478;
ptarget->NavStatus = 1;
ptarget->NavType = 0;
ptarget->SyncState = 0;
ptarget->SOG = 15;
ptarget->COG = 120.0;
ptarget->HDG = 120.0;
ptarget->Lon = 55.7302;
ptarget->Lat = 17.9937;
ptarget->ROTAIS = 0;
ptarget->ROTIND = 0;
ptarget->b_positionOnceValid = true;
ptarget->b_positionDoubtful = false;

SelectItem *pSel = pSelectAIS->AddSelectablePoint( ptarget->Lat,
ptarget->Lon, (void *) ptarget->MMSI, SELTYPE_AISTARGET );
pSel->SetUserData( ptarget->MMSI );

Any suggestion???
useris is offline   Reply With Quote


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

Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities

Copyright 2002-2015 Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 04:46.

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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.