 |
RomRaiderOpen Source ECU Tools |
|
RomRaider
Documentation
Community
Developers
|
|
Page 1 of 1
|
[ 2 posts ] |
|
| Author |
Message |
|
mavstang73
|
Post subject: Algorithm for stft or ltft Posted: Fri Jan 27, 2017 2:55 pm |
|
 |
| Newbie |
Joined: Thu Apr 30, 2009 2:05 am Posts: 38
|
|
Well ive tried searching and just going through this sub forum and no luck.
Do we know the algorithms Subaru uses for stft and ltft in the 32 bit ecus? Say for example the 04 sti ecu.
Im curious to know what the forumlas are.
|
|
| Top |
|
 |
|
nsfw
|
Post subject: Re: Algorithm for stft or ltft Posted: Sat Feb 18, 2017 4:35 pm |
|
 |
| Moderator |
Joined: Wed Nov 22, 2006 10:23 pm Posts: 2565
|
|
I confess that I haven't looked at the code for this, but if you're familiar with PID feedback, the ST trim seems to be the P term and LT trim is the I term.
I'm pretty sure the short-term trim is basically just "(TargetAFR - ActualAFR) * Gain" where the gain is just a constant that keeps the corrections at a reasonable level - high enough to get AFR close to target, low enough to avoid overshooting and oscillating.
The LT trim acts conceptually like a PID loop's I term, moving up and down with sustained positive or negative ST trims, but the code is probably more complicated. With a simple PID loop, you'd see them adjusting constantly by small amounts. But the values seem to be stable most of the time, and then once in a while the ECU decides to spend some time adjusting them. It's weird.
_________________ 2005 Legacy GT w/ ATP 3076, IWG, MBC, BCS, BC 272, LC, FFS, OMG Please don't send questions via PM. Post a thread and send me a link to it instead. Thanks!
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 2 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|
|