[FW MOD] ms2extra 3.2.1 beta gslender v2
Moderators: jsmcortina, muythaibxr
-
- Master MS/Extra'er
- Posts: 662
- Joined: Thu Feb 14, 2008 4:59 am
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
i totally agree with the change to the dashpot, i don't even use it :O
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
Yup, an active dashpot with exponential decay. Am reading upmuythaibxr wrote:OK, separating the CL targets from CL idle and making them independent should not be a problem. I will do it in MS3 and backport. Right now the lookup is only active if CL idle is active.
As far as the dashpot goes, I feel it doesn't work like a real dashpot, so perhaps making it do so is the right way to go? I really don't want yet another table or curve associated with the idle feature, I want to remove some of the tunables while retaining or improving the functionality.
As such, my proposal is that the dashpot work like a real one and open the valve extra like it does now on throttle lift and then close back to the last good or table value over a specified time period. This is how the 2 or 3 OEMs I have seen work (mainly for emissions but with other benefits too). The initial position table can then be used to set the initial RPM going into PID with the dashpot doig what a dashpot should.
Ken
http://www.freestudy.co.uk/dynamics/dam ... ations.pdf
http://www.freepatentsonline.com/4453514.html
Unrelated to dashpot, but a good read:
http://vehicle.berkeley.edu/Publication ... thesis.pdf
I don't know if it should taper over a specified period of time because we can enter the throttle lift period from so many different scenarios. My thinking is, if we want to control the RPMdot, then we should tie dashpot to it somehow.
1996 Mazda MX-5 1.6L NA6/ Mazdaspeed M45 SC/ BSP AW Intercooler/ Maruha F-cams/ 425cc RX-8 injectors/ DIYPNP
MS2/Extra test mule
MS2/Extra test mule
-
- Super MS/Extra'er
- Posts: 1072
- Joined: Fri Sep 16, 2011 5:29 am
- Location: Brisbane, Australia
- Contact:
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
A solution is to tie the decay rate to inverse rpmDOT so that large rpmDOT values slow the decay and small rpmDOT values increase the decay.Greg G wrote: I don't know if it should taper over a specified period of time because we can enter the throttle lift period from so many different scenarios. My thinking is, if we want to control the RPMdot, then we should tie dashpot to it somehow.
A simple way to do this could be;
Dashpot duty = UV x ( abs(rpmDOT) / 1000)
Where UV = user value duty adder
As rpmDOT fluxuates so would dashpot, factored around a user value to magnify or reduce the effect etc. When entering PID the dashpot would be canceled (zero) but actively updated all the time during throttle lifted. To tie into valve closed it could only be active when rpm is below the closed value (right now it just abruptly opens regardless of the rpm that throttle lift occurred).
Simple to tune and probably equally effective.
G
Mazda MX5 + MS3 Pro
-
- Site Admin
- Posts: 8228
- Joined: Thu Oct 14, 2004 12:48 pm
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
I will also be tying fuel return RPM from fuel cut to RPMdot based on some research I have been doing.
However the dashpot is more for emissions the way the factories use it. I plan on doing some research before tying it to anything in particular.
Ken
However the dashpot is more for emissions the way the factories use it. I plan on doing some research before tying it to anything in particular.
Ken
Megasquirt is not for use on pollution controlled vehicles. Any advice I give is for off road use only.
-
- Super MS/Extra'er
- Posts: 1072
- Joined: Fri Sep 16, 2011 5:29 am
- Location: Brisbane, Australia
- Contact:
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
Hi Ken, so what's the plan now that 3.2.1 has gone to release? Will a beta incorporating a few of these mod features be released soon? If so, what features are you planning to take fwd?
Extra memory page?
Idle up code?
Adaptive Idle Advance?
PID RPM input smoother?
Clutch Switch Cl PID Lockout?
MS3 volt and ivt tables?
Others?
G
Oh, and Merry Xmas everyone!
Extra memory page?
Idle up code?
Adaptive Idle Advance?
PID RPM input smoother?
Clutch Switch Cl PID Lockout?
MS3 volt and ivt tables?
Others?
G
Oh, and Merry Xmas everyone!
Mazda MX5 + MS3 Pro
-
- Site Admin
- Posts: 8228
- Joined: Thu Oct 14, 2004 12:48 pm
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
So far all except the TPSdot changes.
Ken
Ken
Megasquirt is not for use on pollution controlled vehicles. Any advice I give is for off road use only.
-
- Super MS/Extra'er
- Posts: 1072
- Joined: Fri Sep 16, 2011 5:29 am
- Location: Brisbane, Australia
- Contact:
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
Best Xmas present ever!muythaibxr wrote:So far all except the TPSdot changes.
Ken
Mazda MX5 + MS3 Pro
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
What will replace the Tpsdot changes? Sliding window?muythaibxr wrote:So far all except the TPSdot changes.
Ken
1996 Mazda MX-5 1.6L NA6/ Mazdaspeed M45 SC/ BSP AW Intercooler/ Maruha F-cams/ 425cc RX-8 injectors/ DIYPNP
MS2/Extra test mule
MS2/Extra test mule
-
- Super MS/Extra'er
- Posts: 1072
- Joined: Fri Sep 16, 2011 5:29 am
- Location: Brisbane, Australia
- Contact:
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
Hopefully the square adc filters and sliding window that James has completed, but with MAP included.Greg G wrote:What will replace the Tpsdot changes? Sliding window?muythaibxr wrote:So far all except the TPSdot changes.
Ken
James, would be great if you can confirm this and/or any chance for someone to test etc.
G
Mazda MX5 + MS3 Pro
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
I feel like Christmas every day now, if I have a look into this board...muythaibxr wrote:So far all except the TPSdot changes.
Ken
--------------------------------
fun is not a straight line
Sven
http://www.mx-5club-sachsen.de
http://miata.cardomain.com/id/svenmx5
NB-1998-1,6-Garrett T25 HGP Turbo Stage I
fun is not a straight line
Sven
http://www.mx-5club-sachsen.de
http://miata.cardomain.com/id/svenmx5
NB-1998-1,6-Garrett T25 HGP Turbo Stage I
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
I figured it out. The AC adder disables dashpot somehow (during throttle lift). So when I am driving with no AC and lift the throttle, I get initial value table (IVT) duty plus dashpot. With the AC on, I get IVT duty plus AC adder, instead of IVT duty plus dashpot plus AC adder. So I have a consistent droop on throttle lift when AC is on.
While typing this, I realized I could solve it if I just set dashpot to zero, and incorporate the dashpot value into the IVT...
But i suppose it's a simple fix to get both adders added?
The good news--idle valve duty voltage correction has the nice side effect of acting as a sort of antistall, since if the RPMs go down really low, the voltage drops and the voltage correction opens up the valve.
Adaptive Idle Advance applied to warmup
Another new thing: RPM error to target can be logged! This graph measures how well AIA is tuned:
This graph lets you visualize the action of P and D terms!
While typing this, I realized I could solve it if I just set dashpot to zero, and incorporate the dashpot value into the IVT...
But i suppose it's a simple fix to get both adders added?
The good news--idle valve duty voltage correction has the nice side effect of acting as a sort of antistall, since if the RPMs go down really low, the voltage drops and the voltage correction opens up the valve.
Adaptive Idle Advance applied to warmup
Another new thing: RPM error to target can be logged! This graph measures how well AIA is tuned:
This graph lets you visualize the action of P and D terms!
1996 Mazda MX-5 1.6L NA6/ Mazdaspeed M45 SC/ BSP AW Intercooler/ Maruha F-cams/ 425cc RX-8 injectors/ DIYPNP
MS2/Extra test mule
MS2/Extra test mule
-
- Site Admin
- Posts: 8228
- Joined: Thu Oct 14, 2004 12:48 pm
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
The AC isleup fixes I made in ms3 will be backported. Basically I stopped applying the adders all over the code and made them all apply from one place so no matter what they are applied when they should be.
Ken
Ken
Megasquirt is not for use on pollution controlled vehicles. Any advice I give is for off road use only.
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
Thanks Ken! Looking forward to it!
Merry Christmas
Merry Christmas
1996 Mazda MX-5 1.6L NA6/ Mazdaspeed M45 SC/ BSP AW Intercooler/ Maruha F-cams/ 425cc RX-8 injectors/ DIYPNP
MS2/Extra test mule
MS2/Extra test mule
-
- Site Admin
- Posts: 8228
- Joined: Thu Oct 14, 2004 12:48 pm
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
You and everyone else too.
Megasquirt is not for use on pollution controlled vehicles. Any advice I give is for off road use only.
-
- Super MS/Extra'er
- Posts: 1072
- Joined: Fri Sep 16, 2011 5:29 am
- Location: Brisbane, Australia
- Contact:
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
Folks, there is a bug in the code regarding how it applies dashpot (thanks Greg for being persistent with me on this).
I've found it, and i know how to fix it. For now, just tune without it if you can (add to the IVT tables).
I hope to have a revised release out within a week that corrects this.
G
I've found it, and i know how to fix it. For now, just tune without it if you can (add to the IVT tables).
I hope to have a revised release out within a week that corrects this.
G
Mazda MX5 + MS3 Pro
-
- Site Admin
- Posts: 8228
- Joined: Thu Oct 14, 2004 12:48 pm
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
I forgot to get you my changes to ms3 last night. I will get them for you today.
Ken
Ken
Megasquirt is not for use on pollution controlled vehicles. Any advice I give is for off road use only.
-
- Super MS/Extra'er
- Posts: 1072
- Joined: Fri Sep 16, 2011 5:29 am
- Location: Brisbane, Australia
- Contact:
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
Hi Ken,
Hopefully this source is cleaned and corrected as you requested to be included in the next base beta release going forward. I've made so many changes now its becoming a real chore to bring forward, so would love for some of them to be part of the next beta if possible
It is based on the released 3.2.1 that James did just before Xmas (but signature still said *beta* 3.2.1)
I also included the re-arranged way the ms3 adders are being added too ... with the sliding window bug fixed
Source >> Here is the firmware too for those that like to try the latest stuff... use with care - not thoroughly tested
Firmware >> For those playing at home, you'll notice the tpsDOT smoothing is gone... don't worry, something better will be available soon (hint, hint James, I hope this is soon - can't live without it now ).
G
Hopefully this source is cleaned and corrected as you requested to be included in the next base beta release going forward. I've made so many changes now its becoming a real chore to bring forward, so would love for some of them to be part of the next beta if possible
It is based on the released 3.2.1 that James did just before Xmas (but signature still said *beta* 3.2.1)
I also included the re-arranged way the ms3 adders are being added too ... with the sliding window bug fixed
Source >> Here is the firmware too for those that like to try the latest stuff... use with care - not thoroughly tested
Firmware >> For those playing at home, you'll notice the tpsDOT smoothing is gone... don't worry, something better will be available soon (hint, hint James, I hope this is soon - can't live without it now ).
G
Mazda MX5 + MS3 Pro
-
- Master MS/Extra'er
- Posts: 662
- Joined: Thu Feb 14, 2008 4:59 am
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
Just downloaded this.
and reverted in less than 1 mile.
the tpsdot smoothing was what made this a real nice firmware. this is now, for me anyway pointless.
The nicer idle is loved also, but not the real reason that i went to this. it was the tpsdot work.
and reverted in less than 1 mile.
the tpsdot smoothing was what made this a real nice firmware. this is now, for me anyway pointless.
The nicer idle is loved also, but not the real reason that i went to this. it was the tpsdot work.
-
- Super MS/Extra'er
- Posts: 1072
- Joined: Fri Sep 16, 2011 5:29 am
- Location: Brisbane, Australia
- Contact:
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
I've got a sliding window tpsdot and mapdot in test. Should have something to release soon plus a new feature... Dynamic Dashpot - works off rpmdot to dynamically apply a variable Dashpot duty.tpsretard2 wrote:Just downloaded this.
and reverted in less than 1 mile.
the tpsdot smoothing was what made this a real nice firmware. this is now, for me anyway pointless.
The nicer idle is loved also, but not the real reason that i went to this. it was the tpsdot work.
G
Mazda MX5 + MS3 Pro
-
- Site Admin
- Posts: 8228
- Joined: Thu Oct 14, 2004 12:48 pm
Re: [FW MOD] ms2extra 3.2.1 beta gslender v2
I already have ideas for dashpot and will be handling them myself to make it work like a regular mechanical dashpot.
Ken
Ken
Megasquirt is not for use on pollution controlled vehicles. Any advice I give is for off road use only.