The online racing simulator
LFS InSim MATLAB
(4 posts, started )
LFS InSim MATLAB
Hello

I am new to InSim

I would like to write my own project and make it work in Matlab/simulink

I was going throe InSim.doc, i was also reading my first insim application thread, but i could not clear something:

Lets say i wanna send this IS_TINY pack

(4 ISP_TINY 1 TINY_NCN)

but when i write my code in matlab i have to define ISP_TINY and TINY_NCN, so i was wondering since i have to send unsigned integers, the code could look like this?

(4 3 1 13)

i was thinking it have to be like this since the string ISP_TINY is more the 1 byte long
#2 - filur
Yes, ISP_TINY and TINY_NCN are integer constants and should be encoded as 8-bit unsigned integers in the packet.
so my thinkingis corect that the code for ISP_TINY =3 and TINY_NCN =13.

the codes are written in Insim.doc in coments?
#4 - filur
Quote from zoisslo :the codes are written in Insim.doc in coments?

Pretty much everything is described in docs/InSim.txt. The file is actually a C header file, written in C syntax.

LFS InSim MATLAB
(4 posts, started )
FGED GREDG RDFGDR GSFDG