Title: EDC15 Mapswitchnig by brake and TPS Post by: barex on February 11, 2023, 06:09:56 AM Hi
I'm trying to do map switching in edc15 with TPS and brake. Unfortunately, I have a problem with finding or reading the correct gas pedal value. According to FR, the TPS value is in CAN 280 - Bit addr 40, 8-bit (byte) value. That's byte 6. It have only 1 xref (other than setting ONES). Code: MEM_EXT:0000CB16 can280: ds 2 ; DATA XREF: seg009:00094148↓w Code: seg009:00094886 loc_94886: ; CODE XREF: seg009:0009487E↑j I think word_C420 is ram value of tps. I managed to find the address of the global TPS variable. But I'm not entirely sure if C0BCi s the correct address. This function is not far from the brake status variables, so I assume it is rather correct. Code: seg009:00094364 movb rl5, breakeC364 On another forum I found information that full throttle has a value of 0x2710. So i write my code Code: movb rl1, 0xC364 ;brake and it doesn't work when i use clutch instead of TPS it work. Code: movb rl1, 0xC364 ;brake Does anyone have an idea why it doesn't work and where I am making a mistake? I don't know much about programming and reverse engineering so any help would be appreciated. Title: Re: EDC15 Mapswitchnig by brake and TPS Post by: fknbrkn on February 11, 2023, 08:07:07 AM Log it to find the answer, check any map that uses tps and get the factor from here
Fix your routine with range of values and not only one possible replace cc_nz with cc_uge and something like 95% |