HOWTO-Make-Your-Own-ECU-Communicate-with-TCU.md

This commit is contained in:
rusefillc 2024-02-10 23:48:12 -05:00
parent 7712c19223
commit da9935c1c6
1 changed files with 8 additions and 9 deletions

View File

@ -72,18 +72,18 @@ Manually resetting codes gets old really quickly so I have a second Proteus cons
Repeating same procedure while dropping each packet ID one by one we get to https://github.com/rusefi/rusefi_documentation/blob/master/OEM-Docs/VAG/2006-Passat-B6/HOWTO/script_4_explicit_list_of_allowed_packets.lua which
explicitly mentions all the IDs allowed to pass, and drops everything else.
## Let's produce our own packet!
## Let's produce our own packet
MOTOR_1 packet contains 🔴 a few torques which I do not know how to approximate 🔴
Let's start with very poor approximation
```language=lua
fakeTorque = interpolate(0, 6, 100, 60, tps)
engineTorque = fakeTorque * 0.9
innerTorqWithoutExt = fakeTorque
torqueLoss = 20
requestedTorque = fakeTorque
fakeTorque = interpolate(0, 6, 100, 60, tps)
engineTorque = fakeTorque * 0.9
innerTorqWithoutExt = fakeTorque
torqueLoss = 20
requestedTorque = fakeTorque
```
https://github.com/rusefi/rusefi_documentation/blob/master/OEM-Docs/VAG/2006-Passat-B6/HOWTO/script_5_fake_torque_motor1.lua
@ -99,4 +99,3 @@ Test scenario: engine is running in P, engage R, engage P, engage R, engage P en
https://github.com/rusefi/rusefi_documentation/tree/master/OEM-Docs/VAG/2006-Passat-B6/2024.02 has script-1-stock-ecu-reverse-twice.trc and script-7-stock-ecu-reverse-twice.trc
``java -jar reader/build/libs/reader-all.jar "C:\stuff\rusefi_documentation\OEM-Docs\VAG\2006-Passat-B6\2024.02" -filter reverse -dbc opendbc/vw_golf_mk4.dbc``