Multiple conditions for generic output

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

Post Reply
masterx81
Master MS/Extra'er
Posts: 776
Joined: Mon Oct 25, 2004 7:36 am
Location: Asti - Italy

Multiple conditions for generic output

Post by masterx81 »

Would be nice to add multiple conditions (more than 2) to drive a generic output. Maybe text based. The tuning software can help compiling the string before passing it to the ecu. 5 or 6 conditions would be sufficient...
Seem possible to be added?
Enrico
Opel/Vauxhall Corsa GSi MS2
Subaru v4 EJ20 MS3
jsmcortina
Site Admin
Posts: 39619
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Multiple conditions for generic output

Post by jsmcortina »

Sounds complex. Do you have any code examples of how to achieve it?

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".
masterx81
Master MS/Extra'er
Posts: 776
Joined: Mon Oct 25, 2004 7:36 am
Location: Asti - Italy

Re: Multiple conditions for generic output

Post by masterx81 »

jsmcortina wrote:Sounds complex. Do you have any code examples of how to achieve it?

James
There are a lot of parsing samples over the net, search for "parsing expressions and statements". We need only to parse and-or and maybe not and simple math operators (like now). No brackets.
But this job maybe is too time consuming for the mcu...
Enrico
Opel/Vauxhall Corsa GSi MS2
Subaru v4 EJ20 MS3
jsmcortina
Site Admin
Posts: 39619
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Multiple conditions for generic output

Post by jsmcortina »

masterx81 wrote:But this job maybe is too time consuming for the mcu...
Very likely, we have an engine to run.

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".
masterx81
Master MS/Extra'er
Posts: 776
Joined: Mon Oct 25, 2004 7:36 am
Location: Asti - Italy

Re: R: Multiple conditions for generic output

Post by masterx81 »

Maybe there is a way to execute some code passed as string? Or direct asm/hex low level commands? Compiling will be done by the tuning software. Need to search on google...
Enrico
Opel/Vauxhall Corsa GSi MS2
Subaru v4 EJ20 MS3
Post Reply