| Plugin Development Extend the functionality of Centrafuse by developing plugins |
 |
|
January 8th, 2009, 04:48 PM
|
#1 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Aug 2007
Location: Slovenia
Vehicle: Fiat Stilo 1.9JTD 163HP
Posts: 1,727
|
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.
|
|
|
|
The Following User Says Thank You to _Dejan_ For This Useful Post:
|
|
January 8th, 2009, 05:19 PM
|
#2 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Feb 2008
Posts: 929
|
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.
|
|
|
January 9th, 2009, 03:21 AM
|
#3 (permalink)
|
|
5 Farad - High Capacity
Join Date: Aug 2008
Posts: 89
|
Good idea!
|
|
|
January 9th, 2009, 04:54 AM
|
#4 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
|
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
|
|
|
January 9th, 2009, 05:49 AM
|
#5 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Aug 2007
Location: Slovenia
Vehicle: Fiat Stilo 1.9JTD 163HP
Posts: 1,727
|
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...
|
|
|
January 9th, 2009, 06:36 AM
|
#6 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
|
Quote:
Originally Posted by _Dejan_
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
|
|
|
|
The Following User Says Thank You to Zorro For This Useful Post:
|
|
January 9th, 2009, 06:42 AM
|
#7 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Aug 2007
Location: Slovenia
Vehicle: Fiat Stilo 1.9JTD 163HP
Posts: 1,727
|
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...
|
|
|
January 9th, 2009, 10:16 AM
|
#8 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Aug 2007
Location: Slovenia
Vehicle: Fiat Stilo 1.9JTD 163HP
Posts: 1,727
|
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...
|
|
|
January 9th, 2009, 10:33 AM
|
#9 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
|
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
|
|
|
|
The Following User Says Thank You to Zorro For This Useful Post:
|
|
January 9th, 2009, 10:49 AM
|
#10 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Aug 2007
Location: Slovenia
Vehicle: Fiat Stilo 1.9JTD 163HP
Posts: 1,727
|
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.
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|