The online racing simulator
Searching in All forums
(11 results)
AI in latest Chrismas 2006 patch seems to be better?
gadaga
S2 licensed
Hi,

I hope this was not discussed allready (haven't seen any post on the subject).

To me in this patch the AI behave much better (in the PRO setting) than in lets say patch S or T. They don't run into tirewalls here and there anymore, they seem to respect me a bit more than before and all of that without having them "learn" the tracks before.

Any opinions on this ? Has Scawen changed the code ? If so, what has been changed?
gadaga
S2 licensed
Thanks a lot Bob (Smith)

Finally I've reused RayOK's VB code and I did the supplementarry coding in VB 6 in order to interface to my DIY motion platform (simulating lateral and longitudinal acceleration). It works like a charm now! LFS feels so good now !
gadaga
S2 licensed
Quote from heyen :First, I have read the threads and the docs.
I searched the forum but didnt find a clear answer.
I manage to retrieve OutSim data and want to
calculate the forces acting on the driver during
different driving situations of a race.



But there is one question remaining:

Are all Vectors related to the world coordinate system?
Or is any vector in car orientation?
Orientation has to be world related. Position also has to.
Only 3 vectors remaining.

Many thanks in advance.

Hi Heyen,


I have the same "problem". I need the accelaration vertors in the car coordinate system and not in the world system. Did you (or anybody else...) manage to produce the transformation formulas necessary from world to car oriented coordinates systems?

Could you please tell me ?
gadaga
S2 licensed
Quote from gadaga :Thanks angry angel !

I'll try your code and report back! Great starting point.

OK I've coded the little program with input from "angry angel" and it perfectly works (with some minor adaptations)!

Now the next challenge. I need to extract from all this outsim packet data the g-forces (acceleration) in lateral, longitudinal and vertical directions.

In the outsim data there is the velocity and acceleration in x, y and z directions (I suppose that there is an area around the tracks with x, y coordinates in the flat plane and a z factor for vertical movement) and a so called velocity 1, 2 and 3 (I don't know to what that corresponds) and alos there is heading (which I suppose is deduced from the velocity x and y data ?).

All in all I would need some mathematical know how (formulas with a lot of sinus, cosinus, tan, atan, ...) to transform all this data.

Would anybody dispose of such formulas to deduce the lateral, longitudinal (wrt to the body of the car) and vertical (allthough here I suppose I can directly use the z components from outsim ?) acceleration data.

Many thanks!
gadaga
S2 licensed
Thanks angry angel !

I'll try your code and report back! Great starting point.
gadaga
S2 licensed
Quote from Victor :Outsim is an interface. You 'connect' to it via udp with some simple settings and then LFS will send data to you. It's up to you to interpret the data to suit your needs.

From the Insim.txt file in your LFS/docs folder :

Thanks for your patience Victor! I suppose I am not the only one asking this kind of questions over time!

Would it be possible for you to tell me where to find a little example of a Visual C++ V6.0 application (source code) which reads and interprets this data send by LFS? I then would adapt this programm for my needs....

Thanks very much!
Motion platform interface in Visual C++ V6.0
gadaga
S2 licensed
Hello,

I need your help....

I am looking for the source code of a program in visual c++ V6.0 which is capable of extracting from LFS, in real time at aroud 20 times per second, the acceleration in x, y and z direction (longitudinal, lateral and vertical).

I would update this source code in order to convert these acceleration data and sent them via RS232 (I have the according serial library as I am allready doing this in rFactor) to my home made motion platform (2 DOF) which works really well with rFactor and which I now would like to use with LFS!.



I suppose that such program would need to connect to LFS via a UDP(?) port and read/decode the UDP data (messages). For that it probably would need to be linked to a library...

Does anybody know if such program and libraries is available and if yes, where I can get it ? It would be nice if it would be prepacaged in a Microsoft visual c++ V6.0 workspace (I know... I am dreaming... lol)

Sorry if I seem a bit lazy here. But I am a LFS "beginner"... I believe that I'll need outsim (is this a library? a program ?) I would really like to go staight to the essentials and not program such program myselves.

Thanks a lot!
Last edited by gadaga, .
gadaga
S2 licensed
Can anyone please tell me wether AI has been improved ?
gadaga
S2 licensed
Quote from Bob Smith :Stuff and myself created such a program under VB6. Yes it can be run on the same PC that LFS is running on. Perhaps if you have a look at the code for that it will help you understand how to code it in C++.

http://www.lfsforum.net/showthread.php?t=3019&page=2

Are you sure that the tread you've indicated contains the source code ? I can't find it.

Thanks for your help !
gadaga
S2 licensed
Dear all,

I've got my little motion platform up and running.... Need to feed it now with data from my favorate sims....

Could anyone please indicate where I can find Microsoft Visual C++ (V6)source code for a little program capable of reading and decoding the LFS UDP packets ?

Can this programm be run on the same computer that is hosting LFS ? I really hope so....

Thanks
lo-fi forum version
gadaga
S2 licensed
Hi,

Can we please have a lo-fi version of these forums (for pocket PC over GPRS/GSM).

I believe it is just a forum setup skin or so to be loaded. Nothing difficult to do. It existed in the RSC forum

Thanks a lot
FGED GREDG RDFGDR GSFDG