The online racing simulator
Matlab/simulink + lfs physics
(7 posts, started )
Matlab/simulink + lfs physics
Hello,

I have no experience with insim and outsim. I know that there are possibilities to get data out of the simulator and into simulator.

I am wondering if anybody have experience or atleast have some clue if following things are possible:

-Using lfs physics with simulink. Something like changing the vehicle parameters on run through the insim? Or changing the driver input?

-Using lfs graphic so sending position and heading of the car from simulink and lfs would only animate it.

I would like to make vehicle dynamics control so I am wondering what are the options here if there are any.

Thanks.

Marek
- InSim outputs game information to the connected program. The only inputs it accepts are clickable buttons and text messages.

- OutGauge and OutSim provide you a detailed view of what the car is doing.

Neither of them allows to do what you are asking for. You would need to edit the correct memory address, and don't make LFS' physics calculations get mad about it while you are at it.


You can change driver input though, there is a driver/API/SDK that allows you to emulate a gaming device so you can input whatever you want.
http://vjoystick.sourceforge.net/site/
Insim has functions to set a car's position now. But it is more to to move cars out of sand traps and such.
While in theory it seems possible to use LFS as a visualisation of external/foreign physics, it would be very crude.

Insim, Outgauge, telemetry-export ( https://www.lfs.net/programmer/raf ) etc all give some very detailed data, but nothing suitable for the realtime "back and forth" you seem to plan.

Maybe have a look at TORCS? http://torcs.sourceforge.net/
Thank you.

The RAF format is well explained but I see some data are no there like yaw rate which could be nice to see.

I didnt know about the TORCS but it looks really good for this purpose.
Can't you use the heading for yaw?
From quick look it gives the vectors, from which you can calculate yaw. And from yaw changes over time you can derive yaw rate.
Yep, my mistake. Didnt saw the heading. Its possible.

Matlab/simulink + lfs physics
(7 posts, started )
FGED GREDG RDFGDR GSFDG