MEGAsquirt A place to collectively sort out this megasquirt gizmo

MegaSquirtSanta - Custom Modifications / Firmware

Thread Tools
 
Search this Thread
 
Old 11-12-2011, 08:58 PM
  #81  
Junior Member
iTrader: (3)
 
yunvmyegt's Avatar
 
Join Date: Feb 2010
Location: boston, ny
Posts: 273
Total Cats: 0
Default

ya thats understandable then. i mean it doesnt effect me in any way, but theyre explaining it better over there now someone asked about it
yunvmyegt is offline  
Old 11-12-2011, 09:39 PM
  #82  
Junior Member
 
Greg G's Avatar
 
Join Date: Jun 2007
Posts: 411
Total Cats: 0
Default

OK so let's get on with it then! Move along

Next candidates for inclusion:
1. rob's tpsdot/mapdot smoothing patch. Eliminates noisy signal so that our accel enrichments are not accidentally triggered bu signal noise
2. idle valve duty smoothing via a moving hysteretic window, as suggested by Jason. A better way of smoothing out the idle valve movements at/near target without it being a dead zone with a nonreactive PID code.
3. Added an RPM based status 4 cancel option (if RPM < user defined RPM, status 4= 0). This will help save you from a stall if AC is on, by turning it off. Should have some sort of timer before allowing status 4 counter to start again, to allow engine to stabilize. Should not be noticeable in ordinary operation, but a good failsafe, just in case.

Last edited by Greg G; 11-12-2011 at 09:49 PM.
Greg G is offline  
Old 11-12-2011, 10:48 PM
  #83  
Newb
 
juansh's Avatar
 
Join Date: Nov 2011
Posts: 11
Total Cats: 0
Default

Originally Posted by Greg G
OK so let's get on with it then! Move along

Next candidates for inclusion:
1. rob's tpsdot/mapdot smoothing patch. Eliminates noisy signal so that our accel enrichments are not accidentally triggered bu signal noise
2. idle valve duty smoothing via a moving hysteretic window, as suggested by Jason. A better way of smoothing out the idle valve movements at/near target without it being a dead zone with a nonreactive PID code.
3. Added an RPM based status 4 cancel option (if RPM < user defined RPM, status 4= 0). This will help save you from a stall if AC is on, by turning it off. Should have some sort of timer before allowing status 4 counter to start again, to allow engine to stabilize. Should not be noticeable in ordinary operation, but a good failsafe, just in case.
easy tiger jejejej all of that look nice but one step at a time lets not abuse of gslender good grace. That said :P G do you need anything else or is my homework completed?
juansh is offline  
Old 11-13-2011, 09:02 AM
  #84  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,494
Total Cats: 4,080
Default

1. is included in the software -- look at lag factors.

2 & 3 -- you're never going to be happy with the idle are you?
Braineack is offline  
Old 11-13-2011, 09:21 AM
  #85  
Junior Member
 
muythaibxr's Avatar
 
Join Date: May 2007
Location: Columbia, MD
Posts: 248
Total Cats: 0
Default

Originally Posted by JasonC SBB
Santa,

If I may suggest ... the whole idle strategy needs to be re-architected.

The main changes I suggest are these:
- the idle_duty% is: lookup table values + feedforward values + PID

- PID always turned off if the wheels are connected to engine, but all lookup tables and feedforward *always* active in determining duty%

- TPS > 0 exits PID

- Whenever PID (closed loop) exits, I is *always* reset to zero

- the output of I has to have a + and a - limit. That is, e.g. it can never add mroe than say, 15%, or remove more than 10% from the output.

- Whenever closed loop is re-entered, I *always* has to be reset to zero

- Whenever closed loop is re-entered there should be a "closed loop re-entry target RPM adder". This stays for like 1 sec, and then the target ramps down to the normal target over say, 3 sec. For example, target will initially be 1200 RPM upon re-entry. This target will stay for 1 sec, then ramp down to 850 over 3 seconds. This will solve the stopping-at-a-stop-sign idle dip, and it will also work well for stepping on the clutch when lugging the engine at 600 RPM.

- having a good set of feedforward setups is critical: a/c, voltage, IAT, etc.
Have you read the code? This is more or less how it already works aside from not having a clutch switch input or feedforwards.

In MS3 I have AC idleup already there as well. I have a 3d table of mat vs requested target with a z axis of duty to replace the "last good" value as well on the way for 1.1.x. I had no plans of limiting the I term action as in my use of the algorithm it is not necessary, and in some cases until I get rid of the "last good" value will actually keep you from reaching the target.

I am also planning a rewrite that doesn't use PID at all.

Frankly, I would really like you to start looking at how things work before making suggestions. It is obvious you want to contribute and that would save us covering ground that has already been covered. A lot of your suggestions are good, but a lot of the time you not looking how it works then saying "it should work x way" when it already mostly does can be confusing for others who don't know how things work yet.

Ken

Last edited by muythaibxr; 11-13-2011 at 09:42 AM.
muythaibxr is offline  
Old 11-13-2011, 10:18 AM
  #86  
Elite Member
iTrader: (1)
 
richyvrlimited's Avatar
 
Join Date: Jun 2006
Location: Warrington/Birmingham
Posts: 2,642
Total Cats: 42
Default

Originally Posted by Braineack
1. is included in the software -- look at lag factors.

2 & 3 -- you're never going to be happy with the idle are you?
Not the same thing Brain, robs code keeps response and removes noise.

Lag factors kill nose but nail response too
richyvrlimited is offline  
Old 11-13-2011, 10:44 AM
  #87  
Junior Member
 
muythaibxr's Avatar
 
Join Date: May 2007
Location: Columbia, MD
Posts: 248
Total Cats: 0
Default

Originally Posted by richyvrlimited
Not the same thing Brain, robs code keeps response and removes noise.

Lag factors kill nose but nail response too
This is correct. But James and I are not sitting to the side ignoring the problem. We have some various test codes we're giving to users to try (y8s for example)

Ken
muythaibxr is offline  
Old 11-13-2011, 04:13 PM
  #88  
Junior Member
Thread Starter
iTrader: (1)
 
gslender's Avatar
 
Join Date: Jun 2011
Location: Australia
Posts: 178
Total Cats: 3
Default

Folks - I'm going to put this whole MegaSquirtSanta thing on ice pending an outcome being discussed in the MSExtra forum on 3.2.0 and the recent licensing changes.
http://www.msextra.com/forums/viewforum.php?f=91

My preference would be that Ken/James and co allow me to continue to create test mods within the MSExtra forum and continue to take ideas and mods forward for people to try and test. If that works, then all this will need to cease and move on to the MSExtra forum.

Cool?

G
gslender is offline  
Old 11-13-2011, 04:34 PM
  #89  
Junior Member
 
Greg G's Avatar
 
Join Date: Jun 2007
Posts: 411
Total Cats: 0
Default

Originally Posted by muythaibxr
I am also planning a rewrite that doesn't use PID at all.
Ken
We going fuzzy logic, Ken? More importantly...are there plans to backport?

Thanks

Greg
Greg G is offline  
Old 11-13-2011, 06:44 PM
  #90  
y8s
2 Props,3 Dildos,& 1 Cat
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
Default

oh hi. TPSdot test code works very nicely. it's a 3 point median filter and keeps noise below a very low threshold even when the voltage is on the threshold of two bits. at 100 lag factor (ie raw tps).

tomorrow is hopefully the MAPdot version test.
y8s is offline  
Old 11-13-2011, 11:06 PM
  #91  
Junior Member
Thread Starter
iTrader: (1)
 
gslender's Avatar
 
Join Date: Jun 2011
Location: Australia
Posts: 178
Total Cats: 3
Default

Originally Posted by y8s
oh hi. TPSdot test code works very nicely. it's a 3 point median filter and keeps noise below a very low threshold even when the voltage is on the threshold of two bits. at 100 lag factor (ie raw tps).

tomorrow is hopefully the MAPdot version test.
Is this the same as Rob's code or something else?

G
gslender is offline  
Old 11-14-2011, 12:04 AM
  #92  
Newb
 
juansh's Avatar
 
Join Date: Nov 2011
Posts: 11
Total Cats: 0
Default

Originally Posted by gslender
Is this the same as Rob's code or something else?

G
no it is something different that ken has been working in ms3

Last edited by juansh; 11-14-2011 at 09:53 AM.
juansh is offline  
Old 11-14-2011, 11:28 AM
  #93  
y8s
2 Props,3 Dildos,& 1 Cat
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
Default

I don't even know who Rob is. I think it's actually James working on it.

here's a snapshot of the new filter. tpsdot is the NEW filtered value. sensor16 is the "old style" tpsdot. I'm not sure what's causing it to be super flat like it is. Note the additional noise in the filtered value. note more how it's all below any threshold that might trigger enrichments. the old value spikes crazy high without much throttle input but the new value is way more subdued and only moves when it's supposed to.

Attached Thumbnails MegaSquirtSanta - Custom Modifications / Firmware-tpsdot_median1.png  
y8s is offline  
Old 11-14-2011, 02:05 PM
  #94  
Elite Member
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,977
Total Cats: 356
Default

Is this on a pre-release alpha?
Reverant is offline  
Old 11-14-2011, 02:21 PM
  #95  
Elite Member
 
JasonC SBB's Avatar
 
Join Date: Jul 2005
Posts: 6,420
Total Cats: 84
Default

The effect of a median filter is simliar to the moving hysteresis window .
I take it the median filter comes between TPS and TPSdot? (and not after TPSdot?)
JasonC SBB is offline  
Old 11-14-2011, 02:21 PM
  #96  
Elite Member
 
JasonC SBB's Avatar
 
Join Date: Jul 2005
Posts: 6,420
Total Cats: 84
Default

Originally Posted by muythaibxr
Have you read the code? This is more or less how it already works aside from not having a clutch switch input or feedforwards.

In MS3 I have AC idleup already there as well.
<snip>
I'm confused. I was referring to MS2 and you are referring to MS3?
JasonC SBB is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
FAB
Prefabbed Turbo Kits
216
03-22-2017 04:00 PM
Tekel
Cars for sale/trade
29
02-05-2016 04:16 PM
The Gleas
MEGAsquirt
3
10-01-2015 09:30 AM
brandonbkd
MEGAsquirt
0
09-28-2015 11:52 PM



Quick Reply: MegaSquirtSanta - Custom Modifications / Firmware



All times are GMT -4. The time now is 07:42 PM.