MS2/extra alpha 3.3.0b (2012/02/27)
Moderators: jsmcortina, muythaibxr
-
- Site Admin
- Posts: 8230
- Joined: Thu Oct 14, 2004 12:48 pm
MS2/extra alpha 3.3.0b (2012/02/27)
Changes since last alpha:
- Backport average-based MAP sampling from MS3
- Merge latest gslender patch
- Slightly speed up ADC clock so conversion sequence time < 0.128ms
- Don't touch ADC0CTL registers after init (To avoid disrupting conversions)
The file can be found here:
http://www.msextra.com/doc/ms2extra/fil ... 120227.zip
Ken
- Backport average-based MAP sampling from MS3
- Merge latest gslender patch
- Slightly speed up ADC clock so conversion sequence time < 0.128ms
- Don't touch ADC0CTL registers after init (To avoid disrupting conversions)
The file can be found here:
http://www.msextra.com/doc/ms2extra/fil ... 120227.zip
Ken
Megasquirt is not for use on pollution controlled vehicles. Any advice I give is for off road use only.
-
- Master MS/Extra'er
- Posts: 443
- Joined: Sat Jun 28, 2008 3:47 am
Re: MS2/extra alpha 3.3.0b (2012/02/27)
its a place to read whats included in the latest gslender patch?
MS2extra
Mass Air Flow fuel and spark
Miata 1.6 turbo
TechSalvager is banned for ignoring admin warnings not to link to his childish videos.
Mass Air Flow fuel and spark
Miata 1.6 turbo
TechSalvager is banned for ignoring admin warnings not to link to his childish videos.
-
- Super MS/Extra'er
- Posts: 1072
- Joined: Fri Sep 16, 2011 5:29 am
- Location: Brisbane, Australia
- Contact:
Re: MS2/extra alpha 3.3.0b (2012/02/27)
Changes made from alpha release MS2/Extra 3.3.0a are as follows:techsalvager wrote:its a place to read whats included in the latest gslender patch?
* added Dashpot Decay (adapted ms3 code, ini and valve-closed fixes)
* made changes to Idle Adaptive Advance ini to better align table axis
* added CL_Idle condition to idle adance (plus Manual added to allow old rpm/load/tps/clt method)
* improved Avg Sliding Window (thanks again Rob!) for PID RPM window smoothing + changed to function (allow reuse).
* added Cut Spark option to overrun fuel cut (allows super quick RPM drops).
* fixed ini bug for pwmidle_cl_initialvalues_duties (fix to bug in 3.3.0a)
* corrected idle code to use status2_pwmidle_closedloop for status2 in code
* changed idle code to use MS3 PWMIDLE_RESET states
* dashpot decay and idle status logs to Status4 and Status5 (respectively to help debug)
* changed PID values to pointers allowing immediate effect/change
* changed idle up duty adder and pid rpm window values to pointers allowing immediate effect/change
* changed dashpot duty and dashpot decay factor values to pointers allowing immediate effect/change
* changed idle advance and IVT tables to pointers allowing immediate effect/change
* fixed IVT bug when negative & changed to pointers (fix to bug in 3.3.0a)
* fixed bug and simplified clutch/neutral engagement (fix to bug in 3.3.0a)
* added new Feature - PWM idle adaptive voltage compensation (attempt to baseline voltage to allow changes from a lagged base)
Note that all Median filters are removed in Ken's release.
G
Mazda MX5 + MS3 Pro
-
- Master MS/Extra'er
- Posts: 612
- Joined: Fri Feb 25, 2011 4:28 pm
Re: MS2/extra alpha 3.3.0b (2012/02/27)
I can see that more input pins are available
.
What pin are 5,6,7 in the cpu?
I can not see that name in the ms2 manual charts for identification of does i/o in particular.
Juan
![Yeah! :yeah!:](./images/smilies/icon_yay.gif)
What pin are 5,6,7 in the cpu?
I can not see that name in the ms2 manual charts for identification of does i/o in particular.
Juan
-
- Super MS/Extra'er
- Posts: 1072
- Joined: Fri Sep 16, 2011 5:29 am
- Location: Brisbane, Australia
- Contact:
Re: MS2/extra alpha 3.3.0b (2012/02/27)
What are you talking about?juansh2385 wrote:I can see that more input pins are available.
What pin are 5,6,7 in the cpu?
I can not see that name in the ms2 manual charts for identification of does i/o in particular.
Juan
![Confused :?](./images/smilies/icon_confused.gif)
Mazda MX5 + MS3 Pro
-
- Master MS/Extra'er
- Posts: 612
- Joined: Fri Feb 25, 2011 4:28 pm
Re: MS2/extra alpha 3.3.0b (2012/02/27)
G,gslender wrote:What are you talking about?juansh2385 wrote:I can see that more input pins are available.
What pin are 5,6,7 in the cpu?
I can not see that name in the ms2 manual charts for identification of does i/o in particular.
Juan
If you look at the in tuner studio in the idle input select tab you will see that there are more option to select now that include PA0 , 5,6 and 7. I am guessing 5,6,7 are for CAN but i am not sure so i asked.
Juan
-
- Site Admin
- Posts: 39621
- Joined: Mon May 03, 2004 1:34 am
- Location: Birmingham, UK
- Contact:
Re: MS2/extra alpha 3.3.0b (2012/02/27)
The problem is this:
There are 3 bits defined so there should be eight options, but there are actually only five. That's why "5", "6", "7" show up to fill in the missing ones.
James
Code: Select all
idle_up_options_input = bits, U08, 0, [1:3], "INVALID","PE0","PE1","INVALID","PA0"
James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk
My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
-
- Super MS/Extra'er
- Posts: 1072
- Joined: Fri Sep 16, 2011 5:29 am
- Location: Brisbane, Australia
- Contact:
Re: MS2/extra alpha 3.3.0b (2012/02/27)
Thanks James - now that I'm looking at it, perhaps this is a better use of the bits...jsmcortina wrote:The problem is this:There are 3 bits defined so there should be eight options, but there are actually only five. That's why "5", "6", "7" show up to fill in the missing ones.Code: Select all
idle_up_options_input = bits, U08, 0, [1:3], "INVALID","PE0","PE1","INVALID","PA0"
James
Code: Select all
idle_up_options_input = bits, U08, 0, [1:2], "PE0","PE1","PA0","INVALID"
Mazda MX5 + MS3 Pro
-
- Super MS/Extra'er
- Posts: 9130
- Joined: Sun May 02, 2004 6:51 am
- Location: Quebec, Canada
- Contact:
Re: MS2/extra alpha 3.3.0b (2012/02/27)
Unless you have code that uses the 'INVALID' values for some other valid setting in other circumstances, there is no reason not to compact this on 2 bits. The usual reason something like that is used (in MS2/Extra) is for the different I/Os between the MS2 and the Microsquirt. You can still reserve the extra bit in the code for future use but not make it visible in the ini.
Jean
Jean
-
- Site Admin
- Posts: 39621
- Joined: Mon May 03, 2004 1:34 am
- Location: Birmingham, UK
- Contact:
Re: MS2/extra alpha 3.3.0b (2012/02/27)
Something else that should be considered for the future is matching up all pin arrays like this, so that a common function can be used to handle them.
See ms3.ini and generic_port_setup in the MS3 source.
James
See ms3.ini and generic_port_setup in the MS3 source.
James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk
My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
-
- Super MS/Extra'er
- Posts: 1072
- Joined: Fri Sep 16, 2011 5:29 am
- Location: Brisbane, Australia
- Contact:
Re: MS2/extra alpha 3.3.0b (2012/02/27)
Yep, saw that in the ms3 source... very cool way of dealing with inputs !!jsmcortina wrote:Something else that should be considered for the future is matching up all pin arrays like this, so that a common function can be used to handle them.
See ms3.ini and generic_port_setup in the MS3 source.
James
![Cool 8)](./images/smilies/icon_cool.gif)
Mazda MX5 + MS3 Pro
-
- Site Admin
- Posts: 8230
- Joined: Thu Oct 14, 2004 12:48 pm
Re: MS2/extra alpha 3.3.0b (2012/02/27)
gslender wrote:Yep, saw that in the ms3 source... very cool way of dealing with inputs !!jsmcortina wrote:Something else that should be considered for the future is matching up all pin arrays like this, so that a common function can be used to handle them.
See ms3.ini and generic_port_setup in the MS3 source.
James
It was a pretty good bit of work in MS3 to convert to that method too. That's the main reason why I didn't want to backport a lot of the ms3 features to ms2... the codebases are very different now and doing things in ms2 is comparatively much more painful than MS3 with the new port/pin and generic setup functions.
If we're switching to the same method in ms2, it will at least be easier to add features that use I/O.
Ken
Megasquirt is not for use on pollution controlled vehicles. Any advice I give is for off road use only.
Re: MS2/extra alpha 3.3.0b (2012/02/27)
This ver. runs very well with my LS1. Haven't ran across any issues yet.
'98 Trans Am LS1 A4
Ms2 3.0 board, controlling fuel and spark.
Ms2 3.0 board, controlling fuel and spark.
-
- Experienced MS/Extra'er
- Posts: 193
- Joined: Wed Nov 11, 2009 11:35 am
- Location: Berlin, Germany
Re: MS2/extra alpha 3.3.0b (2012/02/27)
Runs also very fine on my daily driver. The only problem is, that is impossible to start the car, when its warmed up and EAE is enabled. (bad oscillations - but this is nothing new and can be fixed with ~20 lines of code to fade in EAE gradually with afterstart)
The idle control is really a fine solution for very different needs.
Best Regards, Mario
The idle control is really a fine solution for very different needs.
Best Regards, Mario
Peugeot 106 Sergio_Tacchini, 1124cm³, MS2/Extra pre3.3alpah15, E85
Citroen AX, 954cm³, MS2/Extra pre3.3alpha15, E85
Peugeot 106 Rallye, 1298cm³ ... waiting for ITBs and full sequential injection
Citroen AX, 954cm³, MS2/Extra pre3.3alpha15, E85
Peugeot 106 Rallye, 1298cm³ ... waiting for ITBs and full sequential injection
-
- Super MS/Extra'er
- Posts: 1072
- Joined: Fri Sep 16, 2011 5:29 am
- Location: Brisbane, Australia
- Contact:
Re: MS2/extra alpha 3.3.0b (2012/02/27)
There is a bug in one of my new features - PWM idle adaptive voltage compensation. So leave it off for now as it will cause bad IAC flapping. Fix is sorted.
Mazda MX5 + MS3 Pro
Re: MS2/extra alpha 3.3.0b (2012/02/27)
Are you going to release a V2.3..something in the near future.. Your median filter has helped out my set up. Thanks Ryangslender wrote:
Note that all Median filters are removed in Ken's release.
G
306 SBFord, Torquer II EFI intake, 60 lbs injectors, 8 LS2 coils, VS Racing 7668 turbo, 4R70W, MS3x fw1.4 w/built in trans controller.
-
- Super MS/Extra'er
- Posts: 1072
- Joined: Fri Sep 16, 2011 5:29 am
- Location: Brisbane, Australia
- Contact:
Re: MS2/extra alpha 3.3.0b (2012/02/27)
Helped in what way?ol boy wrote: Are you going to release a V2.3..something in the near future.. Your median filter has helped out my set up. Thanks Ryan
G
Mazda MX5 + MS3 Pro
Re: MS2/extra alpha 3.3.0b (2012/02/27)
Ken was there anything been done to your code in aid for tps and map noise ![Confused :?](./images/smilies/icon_confused.gif)
![Confused :?](./images/smilies/icon_confused.gif)
m2 extra v3.57 3sgte full sequential injection V1.1A P&H Board
full sequential spark low current c.o.p.
holset turbocharger
full sequential spark low current c.o.p.
holset turbocharger
-
- Site Admin
- Posts: 8230
- Joined: Thu Oct 14, 2004 12:48 pm
Re: MS2/extra alpha 3.3.0b (2012/02/27)
Not yet. There are plans to though.
The MAP noise should be significantly reduced for most people (if they notice a difference) from the new MAP sampling code.
We're planning on doing something along a similar line for TPS.
If there's still noise after those changes, we'll look at filters.
Ken
The MAP noise should be significantly reduced for most people (if they notice a difference) from the new MAP sampling code.
We're planning on doing something along a similar line for TPS.
If there's still noise after those changes, we'll look at filters.
Ken
Megasquirt is not for use on pollution controlled vehicles. Any advice I give is for off road use only.
Re: MS2/extra alpha 3.3.0b (2012/02/27)
I was able to get a steady RPM reading as my trigger wheel might not be as square and evenly spaced as needed. This also made tuning closed PID idle better with less up and down swinging. On the MAP side I got my load steady within one percent load range while idling.gslender wrote:Helped in what way?ol boy wrote: Are you going to release a V2.3..something in the near future.. Your median filter has helped out my set up. Thanks Ryan
G
306 SBFord, Torquer II EFI intake, 60 lbs injectors, 8 LS2 coils, VS Racing 7668 turbo, 4R70W, MS3x fw1.4 w/built in trans controller.