MS2/extra alpha 3.3.0b (2012/02/27)

This is a forum for discussing the development and testing of alpha MS2/Extra code. Documentation
(Runs on MS2 and Microsquirt)

Moderators: jsmcortina, muythaibxr

MS2/extra alpha 3.3.0b (2012/02/27)

Postby muythaibxr » Mon Feb 27, 2012 9:29 am

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
Megasquirt is not for use on pollution controlled vehicles. Any advice I give is for off road use only.

:msq:
muythaibxr
Site Admin
 
Posts: 7397
Joined: Thu Oct 14, 2004 12:48 pm

Re: MS2/extra alpha 3.3.0b (2012/02/27)

Postby techsalvager » Mon Feb 27, 2012 9:58 am

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.
User avatar
techsalvager
Master MS/Extra'er
 
Posts: 443
Joined: Sat Jun 28, 2008 3:47 am

Re: MS2/extra alpha 3.3.0b (2012/02/27)

Postby gslender » Mon Feb 27, 2012 2:02 pm

techsalvager wrote:its a place to read whats included in the latest gslender patch?


Changes made from alpha release MS2/Extra 3.3.0a are as follows:

* 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
User avatar
gslender
Super MS/Extra'er
 
Posts: 1072
Joined: Fri Sep 16, 2011 5:29 am
Location: Brisbane, Australia

Re: MS2/extra alpha 3.3.0b (2012/02/27)

Postby juansh2385 » Mon Feb 27, 2012 3:48 pm

I can see that more input pins are available :yeah!:.
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
juansh2385
Master MS/Extra'er
 
Posts: 470
Joined: Fri Feb 25, 2011 4:28 pm

Re: MS2/extra alpha 3.3.0b (2012/02/27)

Postby gslender » Mon Feb 27, 2012 5:02 pm

juansh2385 wrote:I can see that more input pins are available :yeah!:.
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


What are you talking about? :?
Mazda MX5 + MS3 Pro
User avatar
gslender
Super MS/Extra'er
 
Posts: 1072
Joined: Fri Sep 16, 2011 5:29 am
Location: Brisbane, Australia

Re: MS2/extra alpha 3.3.0b (2012/02/27)

Postby juansh2385 » Mon Feb 27, 2012 5:12 pm

gslender wrote:
juansh2385 wrote:I can see that more input pins are available :yeah!:.
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


What are you talking about? :?
G,

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
juansh2385
Master MS/Extra'er
 
Posts: 470
Joined: Fri Feb 25, 2011 4:28 pm

Re: MS2/extra alpha 3.3.0b (2012/02/27)

Postby jsmcortina » Mon Feb 27, 2012 5:37 pm

The problem is this:
Code: Select all
idle_up_options_input     =   bits, U08, 0, [1:3], "INVALID","PE0","PE1","INVALID","PA0"

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
I can supply, repair or upgrade Megasquirts in UK.

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 27538
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: MS2/extra alpha 3.3.0b (2012/02/27)

Postby gslender » Mon Feb 27, 2012 10:16 pm

jsmcortina wrote:The problem is this:
Code: Select all
idle_up_options_input     =   bits, U08, 0, [1:3], "INVALID","PE0","PE1","INVALID","PA0"

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


Thanks James - now that I'm looking at it, perhaps this is a better use of the bits...

Code: Select all
idle_up_options_input     =   bits, U08, 0, [1:2], "PE0","PE1","PA0","INVALID"
Mazda MX5 + MS3 Pro
User avatar
gslender
Super MS/Extra'er
 
Posts: 1072
Joined: Fri Sep 16, 2011 5:29 am
Location: Brisbane, Australia

Re: MS2/extra alpha 3.3.0b (2012/02/27)

Postby racingmini_mtl » Mon Feb 27, 2012 11:08 pm

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
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
racingmini_mtl
Super MS/Extra'er
 
Posts: 6380
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

Re: MS2/extra alpha 3.3.0b (2012/02/27)

Postby jsmcortina » Tue Feb 28, 2012 3:34 am

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
I can supply, repair or upgrade Megasquirts in UK.

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 27538
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: MS2/extra alpha 3.3.0b (2012/02/27)

Postby gslender » Tue Feb 28, 2012 4:59 am

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


Yep, saw that in the ms3 source... very cool way of dealing with inputs !! 8)
Mazda MX5 + MS3 Pro
User avatar
gslender
Super MS/Extra'er
 
Posts: 1072
Joined: Fri Sep 16, 2011 5:29 am
Location: Brisbane, Australia

Re: MS2/extra alpha 3.3.0b (2012/02/27)

Postby muythaibxr » Tue Feb 28, 2012 9:41 am

gslender wrote:
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


Yep, saw that in the ms3 source... very cool way of dealing with inputs !! 8)



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.

:msq:
muythaibxr
Site Admin
 
Posts: 7397
Joined: Thu Oct 14, 2004 12:48 pm

Re: MS2/extra alpha 3.3.0b (2012/02/27)

Postby Monzsta » Wed Feb 29, 2012 10:00 am

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.
Monzsta
Helpful MS/Extra'er
 
Posts: 39
Joined: Sun Oct 26, 2008 5:05 am

Re: MS2/extra alpha 3.3.0b (2012/02/27)

Postby mariob » Wed Feb 29, 2012 11:07 am

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
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
User avatar
mariob
Experienced MS/Extra'er
 
Posts: 189
Joined: Wed Nov 11, 2009 11:35 am
Location: Berlin, Germany

Re: MS2/extra alpha 3.3.0b (2012/02/27)

Postby gslender » Wed Feb 29, 2012 2:49 pm

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
User avatar
gslender
Super MS/Extra'er
 
Posts: 1072
Joined: Fri Sep 16, 2011 5:29 am
Location: Brisbane, Australia

Re: MS2/extra alpha 3.3.0b (2012/02/27)

Postby ol boy » Wed Feb 29, 2012 9:01 pm

gslender wrote:
Note that all Median filters are removed in Ken's release.

G


Are you going to release a V2.3..something in the near future.. Your median filter has helped out my set up. Thanks Ryan
289 SBFord, Dual GM TBI, 8 LS2 coils in waste spark and a TURBO!, MS2extra 3.4a4
ol boy
Master MS/Extra'er
 
Posts: 698
Joined: Mon Sep 10, 2007 3:06 am
Location: Tucson, Az

Re: MS2/extra alpha 3.3.0b (2012/02/27)

Postby gslender » Wed Feb 29, 2012 11:03 pm

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


Helped in what way?

G
Mazda MX5 + MS3 Pro
User avatar
gslender
Super MS/Extra'er
 
Posts: 1072
Joined: Fri Sep 16, 2011 5:29 am
Location: Brisbane, Australia

Re: MS2/extra alpha 3.3.0b (2012/02/27)

Postby davcol » Thu Mar 01, 2012 11:29 am

Ken was there anything been done to your code in aid for tps and map noise :?
m2 extra v3.57 3sgte full sequential injection V1.1A P&H Board
full sequential spark low current c.o.p.
holset turbocharger
davcol
Experienced MS/Extra'er
 
Posts: 157
Joined: Tue Dec 22, 2009 6:12 pm

Re: MS2/extra alpha 3.3.0b (2012/02/27)

Postby muythaibxr » Thu Mar 01, 2012 12:39 pm

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
Megasquirt is not for use on pollution controlled vehicles. Any advice I give is for off road use only.

:msq:
muythaibxr
Site Admin
 
Posts: 7397
Joined: Thu Oct 14, 2004 12:48 pm

Re: MS2/extra alpha 3.3.0b (2012/02/27)

Postby ol boy » Thu Mar 01, 2012 8:06 pm

gslender wrote:
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


Helped in what way?

G


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.
289 SBFord, Dual GM TBI, 8 LS2 coils in waste spark and a TURBO!, MS2extra 3.4a4
ol boy
Master MS/Extra'er
 
Posts: 698
Joined: Mon Sep 10, 2007 3:06 am
Location: Tucson, Az

Next

Return to MS2/Extra Development

Who is online

Users browsing this forum: No registered users and 1 guest