The MP3car.com Store The MP3car.com Store    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > Road Runner > RR Plugins

View Poll Results: How long a time should the MPG be averaged over?
About 10 minutes 0 0%
Hours 2 100.00%
As long as possible 0 0%
Voters: 2. You may not vote on this poll

Reply
 
LinkBack Thread Tools Display Modes
Old 02-19-2008, 10:17 AM   #16
Constant Bitrate
 
krnpimpsta's Avatar
 
Join Date: Dec 2007
Location: DC Metro area
Posts: 158
Yeah, thanks for the pic, but not really the vag scope I had in mind.

This looks like engine stats. I wanted to see the vag scope for something ending in an "-ina"


Sorry, your project looks great. Just messing around.
__________________
2008 Mustang GT CarPC
krnpimpsta is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 02-19-2008, 11:06 AM   #17
Low Bitrate
 
Join Date: Dec 2007
Posts: 71
That costs extra
puter is offline   Reply With Quote
Old 02-19-2008, 11:52 AM   #18
Low Bitrate
 
Join Date: Dec 2007
Posts: 71
guino: I was able to figure out how to create the object. I suspect I am going to have trouble with looping, but I want to play with it a bit before I bother you. Basically I am not sure how I am going to have it continuously loop until the back button is pushed on the skin, I'll play with this before I ask you to look into it
puter is offline   Reply With Quote
Old 02-19-2008, 02:41 PM   #19
Newbie
 
tom_rosenback's Avatar
 
Join Date: Oct 2006
Location: Finland
Posts: 48
Great work!! This is exactly the application I have been looking for / planning to implement. The one thing that I am mostly interested in is the MPG, is it instantaneous or is it an average? I could help you do the logging if you want...

As I live in Finland I would like to get the values in metric units, could you specify in your code more exactly where the conversions is done so that I can comment it out in my version.

Have you tested with older versions of VAG-COM?

Once again, great work!!
tom_rosenback is offline   Reply With Quote
Old 02-19-2008, 03:06 PM   #20
Low Bitrate
 
Join Date: Dec 2007
Posts: 71
Thanks tom. The converstions are actually left in code and commented since I figured people would want the metric version at some point. I will be including all the code when i release it so all you will have to do is change the name from <variable>Conv to <variable> and you will get the metrics. To have proper units show on the RR screen you will need to edit the .png that I will include (so you have all the layers) to contain the correct text.

The MPG is a variable average that you can set easily in code. What I do is I keep a counter from 0 to 100 and then each check cycle (the delay is easily changed by changing the Thread.sleep() call...I currently have it set to 250 ms) the counter increments. When the MPG is checked the counter takes counter % numMPG. If this is 0 then it enters that loop, updates the MPG field with the new MPG / numMPG. otherwise it simply updates a MPG stored value so that you get the average over that period of time. Right now I have it updating every second. I do it this way because the MPG is wildly variable and If you updated it every 1/4 second it would be nearly useless. I'll probably make the update longer before I am done. If you wanted you could easily run this .exe in the background the entire time and stick the mpg on most any window, I would do that but right now I'm just wanting to get it to work

I have it working in RR now (I think, have not had time to test it in my car yet)...I'm just trying to get RR to run the .exe. I will be posting about that next.
puter is offline   Reply With Quote
Old 02-19-2008, 03:09 PM   #21
Low Bitrate
 
Join Date: Dec 2007
Posts: 71
Ok, so I believe I have the communications working, but I've run into a bit of a problem. I cannot seem to get RR to run my .exe. Right now I have the Video button on the main menu as the button I'm using (I'll be changing the main menu pretty drastically). The Command on the button is "LOAD;VagScope.skin;C:\Program Files\RoadRunner\VagScopeMod.exe;VagScope"

Unfortunatly the above command does not seem to run the .exe. I don't believe it is a problem with the .exe because when I click video and then go run the executeable by hand it works fine. Can anyone help me with this?

On a side note: I have also tried this;

"LOAD;VagScope;VagScope.skin;C:\Program Files\RoadRunner\VagScopeMod.exe;VagScope"

Thanks all.
puter is offline   Reply With Quote
Old 02-19-2008, 03:39 PM   #22
Newbie
 
tom_rosenback's Avatar
 
Join Date: Oct 2006
Location: Finland
Posts: 48
In the how-do-i-launch-application-its-own-skin-screen thread it says that it should be:

"LOAD;appsname.SKIN;appsname;C :\Program Files\appsdir\appsname.exe;App Name 2.1","appsname"

neither of these are correct by the specs
Quote:
"LOAD;VagScope.skin;C:\Program Files\RoadRunner\VagScopeMod.exe;VagScope"
or
"LOAD;VagScope.skin;VagScope;C:\Program Files\RoadRunner\VagScopeMod.exe;VagScope;VagScope "

it should be

"LOAD;VagScope;VagScope.skin;C:\Program Files\RoadRunner\VagScopeMod.exe;VagScope"


As for the MPG average, the average is resetted everytime you restart the application, right? I would like it to be manually resettable.

Last edited by tom_rosenback; 02-19-2008 at 03:46 PM.
tom_rosenback is offline   Reply With Quote
Old 02-19-2008, 03:46 PM   #23
Low Bitrate
 
Join Date: Dec 2007
Posts: 71
Ya, that didn't work for me.

I also tried:
"LOAD;appsname.SKIN;appsname;C:\Program Files\appsdir\appsname.exe;App Name 2.1","appsname"
and
"LOAD;appsname.SKIN;appsname;C :\Program Files\appsdir\appsname.exe","appsname"
and
"LOAD;appsname.SKIN;appsname;C:\Program Files\appsdir\appsname.exe","appsname"
puter is offline   Reply With Quote
Old 02-19-2008, 03:48 PM   #24
Low Bitrate
 
Join Date: Dec 2007
Posts: 71
It does however start working if I put it in the same dir and use relative paths. I think I'll just settle for that
puter is offline   Reply With Quote
Old 02-20-2008, 05:46 PM   #25
RoadRunner Mastermind
 
guino's Avatar
 
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Posts: 8,047
This is what it should be (as long as VagScope.skin exists in the current skin folder and has an application area defined):

Code:
"LOAD;VagScope.skin;VagScope;C:\Program Files\RoadRunner\VagScopeMod.exe;VagScope"

But I don't think you'll be embedding VAG scope in RR, will you ? you should only need to have it running along with your plugin in the background... all your plugin needs to do is:

1-Read the values from VAG scope (already does it I believe)
2-Whenever a value changes, send it to RR like this:
Sdk.execute("SETVAR;VAG_MPG;12345.67")

As long as you have a label code in the VagScope.skin with this code below it should work:
"=$VAG_MPG$"

Your program should continuously check for updated values in VAG scope and send them to RR. You should add preventions to where if the SDK object errors out (i.e. if RR closes), to either ignore or close your plugin as well (if desired).
__________________
Road Runner,RR's Myspace

"Being happy is not about having what you want, it's about wanting what you have."
"The best things in life are always free - but that doesn't mean money can't buy you good things."
guino is offline   Reply With Quote
Old 02-20-2008, 09:48 PM   #26
Low Bitrate
 
Join Date: Dec 2007
Posts: 71
done and working

yup, it's all already done and working, thanks for all your help guino

I'm working on fixing up the front end a bit then I'll post all the code and skin to the forumn.
puter is offline   Reply With Quote
Old 02-23-2008, 04:25 PM   #27
Admin. Don't bug or I'll byte.
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Posts: 4,700
Wow. This is great! I'm setting up a new Windows PC in the house and plan on using this in the future. Thanks for contributing!
__________________
-Where in the world is the iBug?
-Find out about theiBug
-Attention Newbies! Have you seen the FAQ Emporium?
-No time to figure it out? Take 5 minutes to view the Car PC 101 video
Bugbyte is online now   Reply With Quote
Old 02-23-2008, 04:26 PM   #28
Low Bitrate
 
Join Date: Dec 2007
Posts: 71
No problem, let me know how it goes
puter is offline   Reply With Quote
Old 02-23-2008, 04:49 PM   #29
Confusion Master
 
Enforcer's Avatar
 
Join Date: Sep 2003
Location: If you go down to the woods today, You're sure of
Posts: 10,263
Quote: Originally Posted by Bugbyte View Post
Wow. This is great! I'm setting up a new Windows PC in the house and plan on using this in the future. Thanks for contributing!


Want kind of VAg scope do you use in the home?










Oh yeah, that one.
Enforcer is online now   Reply With Quote
Old 02-23-2008, 09:12 PM   #30
Newbie
 
japeeler's Avatar
 
Join Date: Nov 2007
Location: Jefferson, Texas
Posts: 36
If it's a "MOTOR"-Home then he would get great info from it!

I, too, plan to use this util! Great Job!!! I know from seeimg other thread requests for something like this, has FIT THE BILL!
__________________
-=- TruckPC Progress -=- 98% Complete -=-
-=- 2006 Ford F-150 Screw 4x4 -=-
@@@@@@@@@@ <-- Planning Phase
@@@@@@@@@@ <-- Purchasing (Never End)
@@@@@@@@@@ <-- Construction Phase
@@@@@@@@@@ <-- Installation Phase
My TruckPC WorkLog @ MP3Car.com
japeeler is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

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 Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embed Visu when already running & in multiple screens? swift_gti Road Runner 4 01-23-2008 05:48 AM
slingplayer embed problems 1Munkey Road Runner 1 11-06-2007 04:52 PM
cant embed my app! djmickyg SkinBedder 7 06-13-2006 08:38 AM
IG Nag screen/ embed issues FIX how to liquid_smoke RR Skins 41 06-03-2006 02:35 AM
Will FD 1.0 embed into FrodoPlayer? Jackboot FreeDrive 0 05-13-2006 11:57 AM


All times are GMT -5. The time now is 04:16 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics