Method to turn off engine

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Method to turn off engine

Post by jsmcortina »

makro wrote:
Reverant wrote: Yeah, isn't it great that not all cars have the dreaded starter interlock?
Tell me more about this interlock?!?! I'm assuming some cars you have to turn the power off to restart the engine??
The ignition key on my race car (from a 1982 Ford Cortina) allows you to crank once, then the starter position is locked out until you key-off again. Pretty standard.
James, I've managed to compile and flash the modified source with those bits set at startup, however the dash doesn't show that the fuel and spark cut is active. Are these indicators something that get's updated separately under normal operation when it's activated through the CANBus code or through another area of the code?
It doesn't really bother me, more so just so I know it's working as expected. As long as I can disable it and start the car, that's the main thing.
Do they show on the TS dash? If they don't, they aren't working.

Thinking about it, don't set the flagbyte bits, instead

Code: Select all

datax1.shutdowncode = SHUTDOWN_CODE_ACTIVE | SHUTDOWN_CODESPK_ACTIVE;
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".
makro
MS/Extra Newbie
Posts: 25
Joined: Fri Aug 08, 2014 5:30 am

Re: Method to turn off engine

Post by makro »

jsmcortina wrote:The ignition key on my race car (from a 1982 Ford Cortina) allows you to crank once, then the starter position is locked out until you key-off again. Pretty standard.
Ahhh d***... I can see how that could be a pain in the backside. I don't think I've ever experienced a car here in Australia that does that. Well I guess I won't have to worry about junctions then =D unless I have to reset the ECU for some other reason.

I'll flash the new code now. Just to confirm, it's = and not |= yeah ? It doesn't matter if I overwrite what's already set in the shutdowncode?
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Method to turn off engine

Post by jsmcortina »

makro wrote:I'll flash the new code now. Just to confirm, it's = and not |= yeah ? It doesn't matter if I overwrite what's already set in the shutdowncode?
You need to make sure that ONLY that code is there - remember that any different code will lockout the shutdown mechanism.

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".
makro
MS/Extra Newbie
Posts: 25
Joined: Fri Aug 08, 2014 5:30 am

Re: Method to turn off engine

Post by makro »

jsmcortina wrote:
makro wrote:I'll flash the new code now. Just to confirm, it's = and not |= yeah ? It doesn't matter if I overwrite what's already set in the shutdowncode?
You need to make sure that ONLY that code is there - remember that any different code will lockout the shutdown mechanism.

James
It works! Cuts are active now by default... woohoo. This should work well. I can still turn them off / on through the CANBus so there is definitely no lock out happening.

Cheers!
Post Reply