Centrafuse Carputer, CarPC & UMPC Forums

Go Back   Centrafuse Carputer, CarPC & UMPC Forums > 3rd Party Development > Plugin Development

Plugin Development Extend the functionality of Centrafuse by developing plugins


Reply
 
LinkBack Thread Tools Display Modes
Old January 8th, 2009, 05:48 PM   #1 (permalink)
10 Farad - Flux Capacity
_Dejan_'s CarPC Specs
 
Join Date: Aug 2007
Location: Slovenia
Vehicle: Fiat Stilo 1.9JTD 163HP
Posts: 1,661
_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold
GPSEngine

Hi guys,
Im start with developing new navigation engine plugin which connect trough serial port to GPS device and monitor data, and share data trough CF_GPSInfo command...
This plugin is useable for users Which have Standard version of CF and would like use plugins which need navigation engine(TripComputer, GPSTrack...)
I must add only DIRECTION function and I will release first alpha version to test.
Can someone help me how can I get DIRECTION from NMEA strings?

--------------------------------------------------------------------------------------------

This plugin is useable for users which have Standard version of CF and would like use plugins which need navigation engine, TripComputer, GPSTrack and many others plugin which take GPS data from CF_GPSInfo methode...
It support next data trough CF_GPSInfo "request":
"ALTITUDE"
"LATITUDE"
"LONGITUDE"
"DIRECTION"
"LOCKEDSATELLITES"
"SPEED"

With LogoDashboard plugin you can request same data and few other:
"3DMODE" - Return "0" for NoFix, return 2D for 2D position and return 3D for 3D position
"GPSTIME" - Return GPS date and time
"DATASTATUS" - Return "Fix" if we have satellite fix and return "FixLost" if we doesn't have satellite fix.

Plugin doesn't have setup or any GUI!!!
If you would like enable it you must go into Setup->Navigation
Then you must select correct serial port and baud rate.
In navigation engine you must select "GPSEngine" Save settings and thats is all.

Note:
-You must have at least Centrafuse 2.1 Update 1 (2.1.1215) installed to run this plugin. Plugin is not tested with older version.
-You must have installed .NET 2.0.

Version 2.1.0.0:
-First version of plugin released for public

Version 2.1.0.1:
-Added support for Imperial units

Thread Discussion

New versions subscription

DOWNLOAD PAGE
__________________
If you like my work you can DONATE me...

Last edited by _Dejan_; January 21st, 2009 at 05:40 PM.
_Dejan_ is offline   Reply With Quote
The Following User Says Thank You to _Dejan_ For This Useful Post:
Old January 8th, 2009, 06:19 PM   #2 (permalink)
10 Farad - Flux Capacity
WuNgUn's CarPC Specs
 
Join Date: Feb 2008
Posts: 891
WuNgUn will become famous soon enough
Beautiful! Looking forward to seeing these plugin's finally working for me...
Thanks D!

Last edited by WuNgUn; January 9th, 2009 at 10:42 AM.
WuNgUn is offline   Reply With Quote
Old January 9th, 2009, 04:21 AM   #3 (permalink)
5 Farad - High Capacity
Txori82's CarPC Specs
 
Join Date: Aug 2008
Posts: 89
Txori82 will become famous soon enoughTxori82 will become famous soon enough
Good idea!
Txori82 is offline   Reply With Quote
Old January 9th, 2009, 05:54 AM   #4 (permalink)
10 Farad - Flux Capacity
Zorro's CarPC Specs
 
Zorro's Avatar
 
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,062
Zorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of light
Send a message via Skype™ to Zorro
Maybe this helps: NMEA data
__________________
Skinning to go... VD2
My Plugins: BluetoothControl, Contacts, Scribble, MWConn, Phidgets, Skype, PluginBrowser, LogoDashboard, SkinBrowser
My Tools: CFInjector
My Skins: Street WS, Gizmo, Cyclone, Drive
Zorro is offline   Reply With Quote
Old January 9th, 2009, 06:49 AM   #5 (permalink)
10 Farad - Flux Capacity
_Dejan_'s CarPC Specs
 
Join Date: Aug 2007
Location: Slovenia
Vehicle: Fiat Stilo 1.9JTD 163HP
Posts: 1,661
_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold
zorro thaks for help.
I have NMEA specification... But I need help how to parse/calculate driving direction from it. Like we receive it if we call CF_GPSInfo("DIRECTION")...
__________________
If you like my work you can DONATE me...
_Dejan_ is offline   Reply With Quote
Old January 9th, 2009, 07:36 AM   #6 (permalink)
10 Farad - Flux Capacity
Zorro's CarPC Specs
 
Zorro's Avatar
 
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,062
Zorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of light
Send a message via Skype™ to Zorro
Quote:
Originally Posted by _Dejan_ View Post
zorro thaks for help.
I have NMEA specification... But I need help how to parse/calculate driving direction from it. Like we receive it if we call CF_GPSInfo("DIRECTION")...
So, you mean the formated string "N", "W", "E", "S" ... and so on?

First create a string like this:
Code:
 
private readonly string[] directions = new[] { "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW", "N", "NNE", "NE", "ENE" };
Then take the degree from VTG and convert it like this:
Code:
 
int dir = (int)(degree/22.5f);
if (dir >= 0 && dir < 16)
   return directions[dir];
__________________
Skinning to go... VD2
My Plugins: BluetoothControl, Contacts, Scribble, MWConn, Phidgets, Skype, PluginBrowser, LogoDashboard, SkinBrowser
My Tools: CFInjector
My Skins: Street WS, Gizmo, Cyclone, Drive
Zorro is offline   Reply With Quote
The Following User Says Thank You to Zorro For This Useful Post:
Old January 9th, 2009, 07:42 AM   #7 (permalink)
10 Farad - Flux Capacity
_Dejan_'s CarPC Specs
 
Join Date: Aug 2007
Location: Slovenia
Vehicle: Fiat Stilo 1.9JTD 163HP
Posts: 1,661
_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold
Yes I think about formated string N, S, E, W...
I will try this your option and report if is this what I need...
Thanks.

Regards, _Dejan_
__________________
If you like my work you can DONATE me...
_Dejan_ is offline   Reply With Quote
Old January 9th, 2009, 11:16 AM   #8 (permalink)
10 Farad - Flux Capacity
_Dejan_'s CarPC Specs
 
Join Date: Aug 2007
Location: Slovenia
Vehicle: Fiat Stilo 1.9JTD 163HP
Posts: 1,661
_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold
Ok Im find problem GPS don't send $GPVTG string :S
I receive:
$GPGSA
$GPRMC
$GPGGA
$GPGSV

Any other way?
__________________
If you like my work you can DONATE me...
_Dejan_ is offline   Reply With Quote
Old January 9th, 2009, 11:33 AM   #9 (permalink)
10 Farad - Flux Capacity
Zorro's CarPC Specs
 
Zorro's Avatar
 
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,062
Zorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of light
Send a message via Skype™ to Zorro
Try RMC track angle.
__________________
Skinning to go... VD2
My Plugins: BluetoothControl, Contacts, Scribble, MWConn, Phidgets, Skype, PluginBrowser, LogoDashboard, SkinBrowser
My Tools: CFInjector
My Skins: Street WS, Gizmo, Cyclone, Drive
Zorro is offline   Reply With Quote
The Following User Says Thank You to Zorro For This Useful Post:
Old January 9th, 2009, 11:49 AM   #10 (permalink)
10 Farad - Flux Capacity
_Dejan_'s CarPC Specs
 
Join Date: Aug 2007
Location: Slovenia
Vehicle: Fiat Stilo 1.9JTD 163HP
Posts: 1,661
_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold_Dejan_ is a splendid one to behold
Thanks again.
I have only one question.
Can I change:
Code:
private readonly string[] directions = new[] { "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW", "N", "NNE", "NE", "ENE"};
to

Code:
private readonly string[] directions = new[] { "E", "SE", "SE", "SE", "S", "SW", "SW", "SW", "W", "NW", "NW", "NW", "N", "NE", "NE", "NE" };
? Because CF I think send only two char something like this second option.
__________________
If you like my work you can DONATE me...

Last edited by _Dejan_; January 9th, 2009 at 11:54 AM.
_Dejan_ is offline   Reply With Quote
Reply

Bookmarks

Tags
gpsengine

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:35 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2009 Flux Media, Inc. All rights reserved.Ad Management plugin by RedTyger