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, 04: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,727
_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of
GPSEngine

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 CFNavInfo ...
It support next data trough CFNavInfo :
Altitude
Latitude
Longitude
Direction
LockedSatellites
Speed

With CF_pluginData you can request next data:
"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 have basic GUI which show current data!!!
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.
In some case you need restart CF or will close it automatic.

Note:
-You must have at least Centrafuse 3.1 (3.1.24.309) installed to run this plugin. Plugin will NOT work with older versions.
-You must have installed .NET 2.0.
-If you upgrade from older version you must delete Calc folder which is located in Windows XP:
C:\Documents and Settings\"Your Username"\Local Settings\Application Data\Centrafuse\Plugins\
Windows vista/Windows 7:
C:\ProgramData\Centrafuse\Centrafuse Auto\"Your Username"\Plugins
-Installer will be avalible later...

Version 3.1.0.0:
-Alpha version - first for public

Screenshot:


Thread Discussion

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

Last edited by _Dejan_; March 11th, 2010 at 02:21 AM.
_Dejan_ is offline   Reply With Quote
The Following User Says Thank You to _Dejan_ For This Useful Post:
Old January 8th, 2009, 05:19 PM   #2 (permalink)
10 Farad - Flux Capacity
WuNgUn's CarPC Specs
 
Join Date: Feb 2008
Posts: 929
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 09:42 AM.
WuNgUn is offline   Reply With Quote
Old January 9th, 2009, 03: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, 04: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,024
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, 05: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,727
_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of
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, 06: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,024
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, 06: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,727
_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of
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, 10: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,727
_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of
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, 10: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,024
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, 10: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,727
_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of_Dejan_ has much to be proud of
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 10: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 06:06 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