The online racing simulator
LFS outgauge on notebook
(5 posts, started )
LFS outgauge on notebook
I used vb6 sample that I downloaded today from here and made this little OutGauge display for my notebook. I just set the OutGauge IP to IP of my notebook and port 56551... It's far from finished... difrent cars have difrent max speeds and revs and on may tacho max is 9000rpms so when you try F1 it looks funny. It can be solved but I just whanted to see if it works... so its pre pre pre alpha. And I don't know if I will have time to ever finish it ... so Im posting VB6 source and...

Here you can see how it works...
http://www.youtube.com/watch?v=tB-h-63i_2I

P.S. Sorry for my english
Attached files
vb6.zip - 351.3 KB - 683 views
Nice dials

I've made a dash in java a while ago, so if you're looking for de car engine values, here they are:

if(car.equals("UF1 ")) {
rpms.setData(7500,8480);
tbos.setVisible(false);
}
if(car.equals("XFG ")) {
rpms.setData(9400,10360);
tbos.setVisible(false);
}
if(car.equals("XRG ")) {
rpms.setData(8370,9290);
tbos.setVisible(false);
}
if(car.equals("LX4 ")) {
rpms.setData(9400,10365);
tbos.setVisible(false);
}
if(car.equals("RB4 ")) {
rpms.setData(7400,8970);
tbos.setVisible(true);
tbos.setData(80, 80);
}
if(car.equals("FXO ")) {
rpms.setData(8500,9110);
}
if(car.equals("XRT ")) {
rpms.setData(7500,8970);
}
if(car.equals("LX6 ")) {
rpms.setData(9400,10640);
tbos.setVisible(false);
}
if(car.equals("RAC ")) {
rpms.setData(7400,8970);
tbos.setVisible(false);
}
if(car.equals("FZ5 ")) {
rpms.setData(9400,10130);
tbos.setVisible(false);
}
if(car.equals("UFR ")) {
rpms.setData(10400,11940);
tbos.setVisible(false);
}
if(car.equals("XFR ")) {
rpms.setData(8400,9980);
tbos.setVisible(false);
}
if(car.equals("MRT ")) {
rpms.setData(12400,13390);
}
if(car.equals("FOX ")) {
rpms.setData(8400,9975);
}
if(car.equals("FO8 ")) {
rpms.setData(10400,11670);
}
if(car.equals("BF1 ")) {
rpms.setData(22000,22000);
}
if(car.equals("FXR ")) {
rpms.setData(8400,9350);
}
if(car.equals("XRR ")) {
rpms.setData(8400,9350);
tbos.setVisible(true);
tbos.setData(18, 18);
}
if(car.equals("FZR ")) {
rpms.setData(10400,11730);
tbos.setVisible(false);
}

Not the most brilliant code, but it's the values that matter.
rpms.setData(10400,11730);
first value is redline, second value is the end of the gauge.

tbos.setData(18, 18);
same as above, turbo doesn't have redline so those are the same.

tbos.setVisible(false);
Car has no turbo.
Spent a while doing this yesterday for my program! Anyway, here are the idle values if you want them. It's in C++ but at least you won't have to go through each car to get them!

char Cars[19][4] = {"XFG","XRG","XRT","RB4","FXO","LX4","LX6","MRT","UF1","RAC","FZ5","XFR","UFR","FOX","FO8","BF1","FXR","XRR","FZR"};
int CarIdleRPM[19] = {966,966,970,971,969,955,955,976,978,975,966,1447,1452,1908,1900,3652,1437,1437,1448};
Works well, don't forget the change the mode to 1 or 2 so you'll get the packet.
Looks like a good system!

Can't wait to see it once you've got all the other car info. Also, maybe incorparate a track map on the notebook, with the car icon's. So you could possibly drive with no overlay's.

Nice job.

LFS outgauge on notebook
(5 posts, started )
FGED GREDG RDFGDR GSFDG