Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
external gauges - real instruments
01-09-2008, 09:40 AM,
#1
external gauges - real instruments
Hi All!

First of all as a free software fan thank you for making this game Big Grin

I have a phidgets servo controller and i wrote some code in vamosworld.cpp from the vdrift-2007-12-26 src to drive the servo taking values from rpm and speed so you can build external gauges...

i made a test yesterday with rpm values and it works ok:

Code:
    float mhc_r = Vamos_Geometry::rad_s_to_rpm (current_focus->car->engine ()->rotational_speed () / 50);

the servo i'm using have a 200 degree movment (position from 20 to 220) so by dividing by 50 i get the correct values to drive the servo.. 1000 rpm / 50 = 20 min value, and 11000 / 50 = 220 max value..

if you are interested in this mod i can post some more information, pics or video.. but i'm not an expert and i'm sure that the code could be done better.. and math too Tongue

keep up with u'r great work!!!

mhc
Reply


Messages In This Thread
external gauges - real instruments - by mhc21 - 01-09-2008, 09:40 AM
[No subject] - by joevenzon_phpbb2_import3 - 01-09-2008, 11:16 AM
[No subject] - by mhc21 - 01-09-2008, 02:45 PM
[No subject] - by thelusiv - 01-09-2008, 04:21 PM
[No subject] - by mhc21 - 01-09-2008, 05:03 PM
[No subject] - by mhc21 - 01-09-2008, 05:07 PM
[No subject] - by thelusiv - 01-09-2008, 05:37 PM
[No subject] - by joevenzon_phpbb2_import3 - 01-09-2008, 09:49 PM
[No subject] - by TF - 01-09-2008, 11:19 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)