The online racing simulator
IS_AXM Problem
(7 posts, started )
IS_AXM Problem
Hi,

IS_MCI Coordinate with an object
var X = Conn.CompCar.X / 65536;

IS_AXM How can I do with objects? What should I add as 65536 ??? By

createaxm.Info.Add(new ObjectInfo
{
X = short.Parse(StrMsg[3]) / ???,
Y = short.Parse(StrMsg[4]) / ???,
Zbyte = byte.Parse(StrMsg[5]) / ???,
});
Don't know what are you trying to do but I don't think you have to divide those values at all. So maybe just

createaxm.Info.Add(new ObjectInfo
{
X = short.Parse(StrMsg[3]),
Y = short.Parse(StrMsg[4]),
Zbyte = byte.Parse(StrMsg[5]),
});

No promises.
Quote from LakynVonLegendaus :Don't know what are you trying to do but I don't think you have to divide those values at all. So maybe just

createaxm.Info.Add(new ObjectInfo
{
X = short.Parse(StrMsg[3]),
Y = short.Parse(StrMsg[4]),
Zbyte = byte.Parse(StrMsg[5]),
});

No promises.

Coordinate system is different X y z 65536 mci also works I ask axm x y z
In my old AXM testing script I found notes saying that for AXM ObjectInfo X and Y - 1 meter = 16.
So maybe you want to do

createaxm.Info.Add(new ObjectInfo
{
X = short.Parse(StrMsg[3]) / 16,
Y = short.Parse(StrMsg[4]) / 16,
Zbyte = byte.Parse(StrMsg[5]),
});

really just guessing since I have no idea what value you have stored in short.Parse(StrMsg[#]) nor even what are you trying to do with that ObjectInfo (Add an object I assume?).
Quote from LakynVonLegendaus :In my old AXM testing script I found notes saying that for AXM ObjectInfo X and Y - 1 meter = 16.
So maybe you want to do

createaxm.Info.Add(new ObjectInfo
{
X = short.Parse(StrMsg[3]) / 16,
Y = short.Parse(StrMsg[4]) / 16,
Zbyte = byte.Parse(StrMsg[5]),
});

really just guessing since I have no idea what value you have stored in short.Parse(StrMsg[#]) nor even what are you trying to do with that ObjectInfo (Add an object I assume?).

Thank you.
Police barier !location and !barrier x y z Smile
#6 - Racon
To convert MCI to autocross:

AXM X = round(MCI X / 4096)
AXM Y = round(MCI Y / 4096)
AXM Z = round(MCI Z / 16384)
AXM Heading = (round(MCI Heading / 256) + 128) % 256

(The +128 in the heading part is to match car orientation for a JRR reset)
Thank you all.

Problem fix.
X = short.Parse(StrMsg[3]) * 16,
Y = short.Parse(StrMsg[4]) * 16,

IS_AXM Problem
(7 posts, started )
FGED GREDG RDFGDR GSFDG