RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Thu Dec 25, 2025 12:23 pm

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Algorithm for stft or ltft
PostPosted: Fri Jan 27, 2017 2:55 pm 
Offline
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
 Profile  
 
 Post subject: Re: Algorithm for stft or ltft
PostPosted: Sat Feb 18, 2017 4:35 pm 
Offline
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
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


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

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl