The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development

Reply
 
Thread Tools Display Modes
Old 02-15-2007, 06:10 PM   #136
Variable Bitrate
cherrybomb's CarPC Specs
 
cherrybomb's Avatar
 
Join Date: Apr 2005
Location: Southern Califorina
Vehicle: 1999 Ford Explorer
Posts: 227
My Photos: (0)
Quote: Originally Posted by intervex View Post
So far so good Cherry... Downloaded and installed latest build, loaded in the config file I sent to you via pm the other day... All seems well, I'll play with some of the other xml config options as time permits over the next hour or so and then I'll pick up on it again tomorrow... great work on this app!

So far I've had no crashes in the beta, did you isolate the source of the crashes from the alpha build?

Again great work Cherry if you were here in LA I'd buy ya a beer keep up the great work and I'll let u know more as I know more!

Yeah, I was doing some naughty memory access stuff when trying to send a window message. It was acceptable in the DEBUG version, but not in the RELEASE compiled version. Got that all straightened out.
__________________
'99 Ford Explorer Eddie Bauer
CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
CarPC Project Web Site

SpaceNavigatorDriver SourceForge Project

Check out my blog.
cherrybomb is offline   Reply With Quote
Sponsored Links
Old 02-15-2007, 06:14 PM   #137
FLAC
sama's CarPC Specs
 
sama's Avatar
 
Join Date: Feb 2006
Location: London, UK
Vehicle: BMW 850CSi
Posts: 1,280
My Photos: (0)
WOW!!! Nice progress man! I'll give it a shot ASAP. Saying that, I'm off to France tommorow till Tuesday, so might have to wait till then
__________________
///Mputer - Velocity - TomTom - Vision - Bezel - CarPC
sama is offline   Reply With Quote
Old 02-15-2007, 06:26 PM   #138
Variable Bitrate
cherrybomb's CarPC Specs
 
cherrybomb's Avatar
 
Join Date: Apr 2005
Location: Southern Califorina
Vehicle: 1999 Ford Explorer
Posts: 227
My Photos: (0)
Quote: Originally Posted by sama View Post
WOW!!! Nice progress man! I'll give it a shot ASAP. Saying that, I'm off to France tommorow till Tuesday, so might have to wait till then

Thanks. :-) You're a busy guy! Enjoy france, assuming it's for pleasure.

No need to rush to this. I'll let everyone play with it and weigh in, and focus on other stuff for a little bit. :-)
__________________
'99 Ford Explorer Eddie Bauer
CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
CarPC Project Web Site

SpaceNavigatorDriver SourceForge Project

Check out my blog.
cherrybomb is offline   Reply With Quote
Old 02-15-2007, 07:11 PM   #139
Newbie
intervex's CarPC Specs
 
intervex's Avatar
 
Join Date: Jan 2007
Location: Glendora, CA
Vehicle: 2012 Bentley Continental GT
Posts: 29
My Photos: (0)
Cherry,
Been trying to make this thing crash for an hour now with no luck.... GREAT WORK!!!! I'll play with it more tomorrow, this looks very promising! I'll update you tomorrow with my experience thus far...
__________________
Intervex

CarPC Progress
■■■■■■■■■95%
just missing the car... ;-)


SpaceNav Driver Dev
intervex is offline   Reply With Quote
Old 02-21-2007, 01:25 PM   #140
Newbie
intervex's CarPC Specs
 
intervex's Avatar
 
Join Date: Jan 2007
Location: Glendora, CA
Vehicle: 2012 Bentley Continental GT
Posts: 29
My Photos: (0)
Thumbs up All's quiet on the SN front...

First off I apologize for not posting sooner, I just returned from a weekend in Santa Barbara with my g/f.

It appears that this release is stable. I've not had anything crash thus far except when using the deprecated XML parameter for mouse emulation from the last alpha build. I'm quite impressed with this... if we could get the context switching I think it'd be great. Anyone have any other experiences with it or input they'd like to share?
__________________
Intervex

CarPC Progress
■■■■■■■■■95%
just missing the car... ;-)


SpaceNav Driver Dev
intervex is offline   Reply With Quote
Sponsored Links
Old 02-21-2007, 05:56 PM   #141
Variable Bitrate
cherrybomb's CarPC Specs
 
cherrybomb's Avatar
 
Join Date: Apr 2005
Location: Southern Califorina
Vehicle: 1999 Ford Explorer
Posts: 227
My Photos: (0)
Quote: Originally Posted by intervex View Post
First off I apologize for not posting sooner, I just returned from a weekend in Santa Barbara with my g/f.

It appears that this release is stable. I've not had anything crash thus far except when using the deprecated XML parameter for mouse emulation from the last alpha build. I'm quite impressed with this... if we could get the context switching I think it'd be great. Anyone have any other experiences with it or input they'd like to share?

Not a problem, thanks for the update.

Should have told me you were heading to SB, I live there.

I'll work on getting context switching in there very soon, it should be a fairly simple thing to do. How do you feel about the mechanism I described a few posts ago? Using Window Messages for context switching?

The alternative is that it has to be some action of either a button or axis, or that it attempts to switch contexts based on the active window, which I'd prefer not to do.
__________________
'99 Ford Explorer Eddie Bauer
CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
CarPC Project Web Site

SpaceNavigatorDriver SourceForge Project

Check out my blog.
cherrybomb is offline   Reply With Quote
Old 02-21-2007, 06:39 PM   #142
Newbie
intervex's CarPC Specs
 
intervex's Avatar
 
Join Date: Jan 2007
Location: Glendora, CA
Vehicle: 2012 Bentley Continental GT
Posts: 29
My Photos: (0)
Cherry,
Didn't know you were from the area, I woulda mentioned it had I known... We picked a great weekend to head up there though, the weather was fantastic. We had a great time!

Anywho, on to the project at hand... Seeing as RR Skinners/Users already use window messages, and it works reliably, I see no reason to deviate from that... reading your earlier post however I notice you would provide for a sequential access to contexts where you would switch 1-2-3-4-etc... Is there a way to parse the XML file to get an array of assigned context names, and then translate the assigned names into available window messages? so if you did something like:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <snConfig> <contexts> <context-Default> [CONTROL SET 1] </context-Default> <context-Guidance> [CONTROL SET 2] </context-Guidance> <context-Music> [CONTROL SET 3] </context-Music> </contexts>

You would get available window messages of Default, Guidance, and Music?

There has to be a way of random access contexts as opposed to the linear approach... I don't know how difficult it would be to implement something like that however.

Also, does RR have built-in support for the sending of window messages to other applications? or simply receiving them? If it does, this would make quick work of retrofitting any existing skin with SN context commands...
__________________
Intervex

CarPC Progress
■■■■■■■■■95%
just missing the car... ;-)


SpaceNav Driver Dev
intervex is offline   Reply With Quote
Old 02-22-2007, 12:45 AM   #143
Variable Bitrate
cherrybomb's CarPC Specs
 
cherrybomb's Avatar
 
Join Date: Apr 2005
Location: Southern Califorina
Vehicle: 1999 Ford Explorer
Posts: 227
My Photos: (0)
Quote: Originally Posted by intervex View Post
Cherry,
Didn't know you were from the area, I woulda mentioned it had I known... We picked a great weekend to head up there though, the weather was fantastic. We had a great time!

Anywho, on to the project at hand... Seeing as RR Skinners/Users already use window messages, and it works reliably, I see no reason to deviate from that... reading your earlier post however I notice you would provide for a sequential access to contexts where you would switch 1-2-3-4-etc... Is there a way to parse the XML file to get an array of assigned context names, and then translate the assigned names into available window messages? so if you did something like:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <snConfig> <contexts> <context-Default> [CONTROL SET 1] </context-Default> <context-Guidance> [CONTROL SET 2] </context-Guidance> <context-Music> [CONTROL SET 3] </context-Music> </contexts>

You would get available window messages of Default, Guidance, and Music?

There has to be a way of random access contexts as opposed to the linear approach... I don't know how difficult it would be to implement something like that however.

Also, does RR have built-in support for the sending of window messages to other applications? or simply receiving them? If it does, this would make quick work of retrofitting any existing skin with SN context commands...

Yeah, I had actually reconsidered that after posting. I'll be implementing it such that you can pick any context by sending an appropriate window message.

As for RR being able to send window messages, I assume it can be done, though I haven't confirmed it. I'll look into it before commiting. If necessary maybe a plugin or something would be called for.

Seems like using window messages to pick a particular context is acceptable to everyone that's read this thus far. I'll start working on it when I get a few spare moments. :-)
__________________
'99 Ford Explorer Eddie Bauer
CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
CarPC Project Web Site

SpaceNavigatorDriver SourceForge Project

Check out my blog.
cherrybomb is offline   Reply With Quote
Old 02-22-2007, 10:10 PM   #144
Variable Bitrate
cherrybomb's CarPC Specs
 
cherrybomb's Avatar
 
Join Date: Apr 2005
Location: Southern Califorina
Vehicle: 1999 Ford Explorer
Posts: 227
My Photos: (0)
Yup, confirmed, RR can send window messages, the skin command is "SENDMSG". :-)
__________________
'99 Ford Explorer Eddie Bauer
CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
CarPC Project Web Site

SpaceNavigatorDriver SourceForge Project

Check out my blog.
cherrybomb is offline   Reply With Quote
Old 02-23-2007, 03:51 AM   #145
FLAC
sama's CarPC Specs
 
sama's Avatar
 
Join Date: Feb 2006
Location: London, UK
Vehicle: BMW 850CSi
Posts: 1,280
My Photos: (0)
Hello hello!

cherrybomb, I've finally pulled my thumbs out and have coded the gestures processor, as promised. Code is attached

It's in Java, so it will require a little converting to C++, but it should be very straight forward as it's mostly core code. There's a little work needed on managing some lists, since I rely on the garbage collector to take care of adding and removing to it (in Java, a little heap is setup and performance is so good, that you can rely on it... but hey, that's Java )

I've mega-commented the code, so it should be readable hopefuly. But grab me on AIM as always, when you like. Here's a quick description of what's what:

Motions and TimeFrames are of type Gesture.

Motions are when the threshold is hit, and not an actual value.

A TimeFrame is the delay between motions. A static variance figure exists in here, which is how much leeway to give when checking to see if the delay by the user matches the defined delay. It's basically the precision element.

Macros are a sequence of gestures, and they look something like this: {PAN_X_POS, 200ms, PAN_X_NEG}

When a motion's threshold is detected, then the newGesture method in GestureProcessor should be called with the axis's id and its direction (all available in an enum in the Motion class). The motion is immediately stored in a gesture list along with the time between the last gesture and the current one.

Then the processGestures method is called by the above method when it finishes. This will iterate over all the defined macros, and see if any of them match the sequence gestures in the current gestures list. And since the search is done backwards, it's a little optimised. I could add some more hashing in there, but that will complicaet things and I dont' think it will make that much of a difference.

When a match is found, an event is raised with that macro's id.

Macros can be defined by calling the addMacro in the GestureProcessor. It should be easy to implement a record function using the above methods. In fact, it pretty much already does that. All we'd have to do is add a method that grabs the gesture list, and saves it when the user is in record mode. But this is only useful if we have some config tool.
Attached Files
File Type: zip GestureProcessor.zip (2.0 KB, 26 views)
__________________
///Mputer - Velocity - TomTom - Vision - Bezel - CarPC

Last edited by sama : 02-23-2007 at 03:54 AM.
sama is offline   Reply With Quote
Old 02-23-2007, 11:07 AM   #146
Newbie
intervex's CarPC Specs
 
intervex's Avatar
 
Join Date: Jan 2007
Location: Glendora, CA
Vehicle: 2012 Bentley Continental GT
Posts: 29
My Photos: (0)
Sama, welcome back, hope your trip went well. The gesture processor sounds great, should be a good addition to this project. Cherry, that's fantastic re: the window messages, let me know when you've had some time to play around with it...
__________________
Intervex

CarPC Progress
■■■■■■■■■95%
just missing the car... ;-)


SpaceNav Driver Dev
intervex is offline   Reply With Quote
Old 02-23-2007, 01:45 PM   #147
Newbie
intervex's CarPC Specs
 
intervex's Avatar
 
Join Date: Jan 2007
Location: Glendora, CA
Vehicle: 2012 Bentley Continental GT
Posts: 29
My Photos: (0)
Lightbulb Possible feature?

I have another idea for this project... since it's already set-up to send window messages and such, how hard would it be or would it even be possible, to have the SN program receive the
Code:
SENDMSG;SpaceNavigator;CONTEXT-MUSIC

from RR, and the SN program spit back something like
Code:
SETLABEL;!SNContext;Music

This would close the loop and provide confirmation that the intended action was taken and we could also then have a little status indicator/readout or some such thing that would show us within RR what context we're in?

(I apologize in advance if I use an incorrect window messages in my example, I'm trying to make sense of the available commands to demonstrate my idea)
__________________
Intervex

CarPC Progress
■■■■■■■■■95%
just missing the car... ;-)


SpaceNav Driver Dev
intervex is offline   Reply With Quote
Old 02-23-2007, 01:52 PM   #148
Variable Bitrate
cherrybomb's CarPC Specs
 
cherrybomb's Avatar
 
Join Date: Apr 2005
Location: Southern Califorina
Vehicle: 1999 Ford Explorer
Posts: 227
My Photos: (0)
Quote: Originally Posted by intervex View Post
I have another idea for this project... since it's already set-up to send window messages and such, how hard would it be or would it even be possible, to have the SN program receive the
Code:
SENDMSG;SpaceNavigator;CONTEXT-MUSIC

from RR, and the SN program spit back something like
Code:
SETLABEL;!SNContext;Music

This would close the loop and provide confirmation that the intended action was taken and we could also then have a little status indicator/readout or some such thing that would show us within RR what context we're in?

(I apologize in advance if I use an incorrect window messages in my example, I'm trying to make sense of the available commands to demonstrate my idea)

It's absolutely a possibility, and something I've considered doing. This would take care of the need for some onscreen display of the context, since it would be shown right in RR.

I'll keep it in mind while developing the context switching stuff. :-)
__________________
'99 Ford Explorer Eddie Bauer
CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
CarPC Project Web Site

SpaceNavigatorDriver SourceForge Project

Check out my blog.
cherrybomb is offline   Reply With Quote
Old 02-23-2007, 02:00 PM   #149
Newbie
intervex's CarPC Specs
 
intervex's Avatar
 
Join Date: Jan 2007
Location: Glendora, CA
Vehicle: 2012 Bentley Continental GT
Posts: 29
My Photos: (0)
Yeah, that's what I was thinking, plus it keeps the SN program more as a plug-in or extension like you were talking about, it enables skinners and such to display the context wherever/however they want.
__________________
Intervex

CarPC Progress
■■■■■■■■■95%
just missing the car... ;-)


SpaceNav Driver Dev
intervex is offline   Reply With Quote
Old 03-14-2007, 11:08 AM   #150
Newbie
intervex's CarPC Specs
 
intervex's Avatar
 
Join Date: Jan 2007
Location: Glendora, CA
Vehicle: 2012 Bentley Continental GT
Posts: 29
My Photos: (0)
Question Any Progress?

Hey Ryan, just checking in to see if there's been any progress on the context switching? Seems like this thread died rather quickly....
__________________
Intervex

CarPC Progress
■■■■■■■■■95%
just missing the car... ;-)


SpaceNav Driver Dev
intervex is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find a List of Available Skins Here! ThunderStick RR Skins 0 10-17-2007 06:28 PM
Questions! Yellow-Snow Mobile Impact 4 06-10-2006 05:18 PM
iGuidance Font Size Fix summary thread Viscouse GPS 29 03-28-2006 06:21 PM
Hot Chicks Thread - NOT WORK SAFE ODYSSEY Off Topic 1 05-17-2005 09:38 PM
Request regarding the Offical Skin Presentation thread Confused MediaCar 3 01-07-2004 11:52 AM


All times are GMT -5. The time now is 10:12 PM.


Sponsored Links