External advance?

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

External advance?

Post by Reverant »

Looking through the outpc variables in firmware 1.3.0, I see a variable named "ext_advance" at offset 454.

I was really hoping that I could put any ignition offset I wanted in that variable, to arbitrarily alter the engine's timing through CAN, however the final timing advance didn't change and on top of that, my value was getting overwritten anyway. Searching the forums doesn't yield any results - just that it was originally named ext_retard, and no results on that either.

So, what does ext_advance do and how could I manipulate the timing like I thought I could?

Thanks!
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: 39619
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: External advance?

Post by jsmcortina »

ext_advance is an outpc output of any external advance adjustment. The input is sent to datax1.SpkAdj and usually comes from a trans controller.
From ms3.h:

Code: Select all

    int FuelAdj, SpkAdj, IdleAdj, SprAdj; // allow other devices to change our behaviour. Published offsets of 512+118 = 630 et seq. AVOID MOVING
Hopefully that should get you going.

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: External advance?

Post by Reverant »

Exactly what I was looking for, thanks!
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: External advance?

Post by Reverant »

Any chance the code ignores negative values on timing? 40 adds 4.0 degrees, -40 does nothing (ext_advance is 0 degrees instead of -4.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