- 9
- Brazil
@GeekyDeaks, HELPPPPPP ...
I'm trying to add some channels to Sim-To-Motec!
I noticed that you are not getting the fuel level, turbo & oil pressures, TCS and ASM.
I was also needing to convert speed from mph to kph.
I solved 3 itens (KPH, TCS andASM), but I just don't know how to read FuelLeft, TurboBoost and OilPressure from the packet.
I noticed that you skip some itens:
fmt = struct.Struct(
"<"
"4x" # MAGIC / i / 4x / 0x0000
"12x" # VELOCITY_ANGULAR / 3f / 12x / 0x002C / Skipped!
"4x" # IV / 4B / 4x / 0x0040 / Skipped!
"4x" # CURRENT_FUEL / f / 4x / 0x0044 / Skipped!
"4x" # FUEL_CAPACITY / f / 4x / 0x0048 / Skipped!
"4x" # TURBO_BOOST / f / 4x / 0x0050 / Skipped!
"4x" # OIL_PRESSURE / f / 4x / 0x0054 / Skipped!
"4x" # WATER_TEMP / f / 4x / 0x0058 / Skipped!
"4x" # OIL_TEMP / f / 4x / 0x005C / Skipped!
"4x" # DAYTIME_PROGRESSION / i / 4x / 0x0080 / Skipped!
"2x" # MAX_SPEED / h / 2x / 0x008C / Skipped!
"x" # UNKNOWN / B / x / 0x0093 / Skipped!
"16x" # ROAD_PLANE / 4f / 16x / 0x0094 / Skipped!
"32x" # UNKNOWN_RESRVED / 32B / 32x / 0x00D4 / Skipped!
"4x" # CLUCH / f / 4x / 0x00F4 / Skipped!
"4x" # CLUCH_ENGAGEMENT / f / 4x / 0x00F8 / Skipped!
"4x" # CLUCH_RPM / f / 4x / 0x00FC / Skipped!
"4x" # TOP_SPEED / f / 4x / 0x0100 / Skipped!
"32x" # GEAR_RATIOS / 8f / 32x / 0x0104 / Skipped!
)
How can I retrieve this values?
I'm new on Python and a I couldn't find any mappings ...
Best regards,
cybercic21
I'm trying to add some channels to Sim-To-Motec!
I noticed that you are not getting the fuel level, turbo & oil pressures, TCS and ASM.
I was also needing to convert speed from mph to kph.
I solved 3 itens (KPH, TCS andASM), but I just don't know how to read FuelLeft, TurboBoost and OilPressure from the packet.
I noticed that you skip some itens:
fmt = struct.Struct(
"<"
"4x" # MAGIC / i / 4x / 0x0000
"12x" # VELOCITY_ANGULAR / 3f / 12x / 0x002C / Skipped!
"4x" # IV / 4B / 4x / 0x0040 / Skipped!
"4x" # CURRENT_FUEL / f / 4x / 0x0044 / Skipped!
"4x" # FUEL_CAPACITY / f / 4x / 0x0048 / Skipped!
"4x" # TURBO_BOOST / f / 4x / 0x0050 / Skipped!
"4x" # OIL_PRESSURE / f / 4x / 0x0054 / Skipped!
"4x" # WATER_TEMP / f / 4x / 0x0058 / Skipped!
"4x" # OIL_TEMP / f / 4x / 0x005C / Skipped!
"4x" # DAYTIME_PROGRESSION / i / 4x / 0x0080 / Skipped!
"2x" # MAX_SPEED / h / 2x / 0x008C / Skipped!
"x" # UNKNOWN / B / x / 0x0093 / Skipped!
"16x" # ROAD_PLANE / 4f / 16x / 0x0094 / Skipped!
"32x" # UNKNOWN_RESRVED / 32B / 32x / 0x00D4 / Skipped!
"4x" # CLUCH / f / 4x / 0x00F4 / Skipped!
"4x" # CLUCH_ENGAGEMENT / f / 4x / 0x00F8 / Skipped!
"4x" # CLUCH_RPM / f / 4x / 0x00FC / Skipped!
"4x" # TOP_SPEED / f / 4x / 0x0100 / Skipped!
"32x" # GEAR_RATIOS / 8f / 32x / 0x0104 / Skipped!
)
How can I retrieve this values?
I'm new on Python and a I couldn't find any mappings ...
Best regards,
cybercic21