Ok peeps, I think the SDK is nearly done. I may add a couple more commands over the next day or two, but its looking quite good :-) I havent checked the 'request' command in it yet, but cant see any reason why they wouldnt work.
New in this Version (0.51)
- Added more commands to SDK
- You can now use a external OSK with the SDK (input text)
- Fixed a couple of bugs from 0.5 version
- No need to enter text that you don't need in the skin.ini
(hence get rid of "menubutton=" if using touchmenu)
Grab it from the FreeDrive website. If you already have version 0.5 installed, then just download the updated FreeDrive folder and overwrite the current one (default installed at C:\Program Files\FreeDrive)
cheers
CdR
p.s heres a copy of the readme included
Code:
FreeDrive 0.51 Beta
Please remembr this is only a beta release.
SDK How to use.
The SDK uses the COMsend command which examples are provided for in VB6 and Delphi (thanks goes to Guino for these)
COMMANDS
FreeDrive can now accept the following commands through COMsend Please send them to the name "FDSDK" so for example
to ask FreeDrive to turn to 3d view you would use COMsend "FDSDK","view3d"
view2d - changes to 2d view
view3d - changes to 3d view
viewbirdseye - changes to birdseye view
day - changes to day skin
night - changes to night skin
address - shows the address input page
history - shows the history page
favorites - shows the favorites page
home - goes to the address in favorites called 'HOME'
cancel - returns to the main screen
clear - clears current route and returns to the main screen
go - like pressing the go button
delete - like pressing the delete button
add - like pressing the add button
swap - swaps between city and postcode on address screen
street - like pressing the street button
house - like pressing the house button
keyboard - like pressing the keyboard button
quit - ends FreeDrive
input - Sends anytext to the textbox ie. COMsend "FDSDK","INPUT||L" would send L or "input||TRYTHIS" would send TRYTHIS
you can also use "input||{bs}" to backspace (delete last letter) or "input||{ }" for a " " (space). The input
command uses VB's sendkeys command, so just follow that format :-)
REQUEST
These are used to request info from FreeDrive, like speed, heading etc.. If you require info to be sent all the time, please
alter the sdk.ini file. You use this command like COMSend "FDSDK" , "REQUEST||FDSPEED||RoadRunner"
FDSPEED - What speed your doing
FDSATS - Number of Sats currently getting
FDETA - Expected time of arrival
FDETR - Expected time remaining
FDHEAD - Heading in word format or degrees (dependant on the skin your using in freedrive)
FDROAD - Current Address
FDLONG - Present Longtitude
FDLAT - Present Latitude
FDALT - Present Altitude
FDTIME - Time
FDDATE - Date
FDEND - End Address (the one your routing to)
FDDIST - Distance to end
FDUNITS - Impiral or metric.. (miles or km)
You will also notice a sdk.ini, look in this for details on how to get freedrive to send info every second without
requesting it. This is to remove the need for request commands.
cheers
CdRsKuLL