VVT code for Miata 36-2 wheel decoder

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

Post Reply
Reverant
Super MS/Extra'er
Posts: 1233
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

VVT code for Miata 36-2 wheel decoder

Post by Reverant »

Hi devs,

I have backported the 36-2 wheel decoder from the MS2 code (3.3.2 beta 5) to my MS3, which is running 1.2.4.

I'm running 1.2.4 as I have patched it to include more ADCs, inputs, outputs and several other features I need (second cooling fan, etc).

The car runs well with the backported code, minus VVT of course, where I couldn't find anything obvious as to what needs to be done to make it work.

Is there any chance one of the devs can give me a pointer or a code patch?

Thank you in advance gentlemen!
The man behind MS Labs
2005 Audi A3 2.0L TFSI DSG AWD - Extreme MS3
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: VVT code for Miata 36-2 wheel decoder

Post by jsmcortina »

Miata 36-2 VVT is already supported in the current MS3 firmware.

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".
Reverant
Super MS/Extra'er
Posts: 1233
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Re: VVT code for Miata 36-2 wheel decoder

Post by Reverant »

36-2 is not supported in 1.2.4, which is what I am running, as I have patched the source for additional features.

I would love to run 1.3.0, however the source for that is not available yet.
The man behind MS Labs
2005 Audi A3 2.0L TFSI DSG AWD - Extreme MS3
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost
Reverant
Super MS/Extra'er
Posts: 1233
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Re: VVT code for Miata 36-2 wheel decoder

Post by Reverant »

I've found I need to change ms3_init.c to allow VVT on the wheel without a config error, isr_ign.s to capture the cam teeth and ms3_ign.c to calculate the actual vvt angle.

If one of the devs could share the code (or just give the source for 1.3.0 stable since the first 1.4 alpha is already released?) I would be most grateful.
The man behind MS Labs
2005 Audi A3 2.0L TFSI DSG AWD - Extreme MS3
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: VVT code for Miata 36-2 wheel decoder

Post by jsmcortina »

The source for 1.3.x is not yet ready for release.

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".
Reverant
Super MS/Extra'er
Posts: 1233
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Re: VVT code for Miata 36-2 wheel decoder

Post by Reverant »

Any chance you can email me just the few bits of code I need to make VVT work with my 36-2 wheel? That's all I need really from 1.3.0.
The man behind MS Labs
2005 Audi A3 2.0L TFSI DSG AWD - Extreme MS3
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost
Post Reply