Changing values in the code

'Microsquirt' Transmission Control development and support.

Moderators: jsmcortina, muythaibxr

Post Reply
Turbofreakdotcom
Experienced MS/Extra'er
Posts: 201
Joined: Mon Sep 15, 2008 9:29 pm

Changing values in the code

Post by Turbofreakdotcom »

I am having issues with using my paddle circuit where shift will bounce from 3 to 4 to 3 to 4 etc when I press the down shift button using a circuit with 3.6 volt up and 2.8 volts down.
Messing around tonight I found a debounce value in the trans_main file.

Code: Select all

} else if ((paddle_phase == 1) || (paddle_phase == 2)) {
                        if ((pad_mode != 1) && (pad_mode != 2)) { // was pressed, now released
                            paddle_timer = 78; // 10ms debounce
                            paddle_phase += 2;
I am using the TPS input for paddle shifts and a 2k2 ohm pull down resistor on the circuit.
If I change this paddle debounce to a higher value, does it require reflashing the firmware for change to take effect if trans_main is modified? Will this actually change the paddle debounce value for the "MS2" selection?
Updated 6/20/18:
87 Supra-3.0 1.5JZ-A340 trans
MS2 ECU
MS2 Trans controller
jsmcortina
Site Admin
Posts: 39615
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Changing values in the code

Post by jsmcortina »

You must recompile and reload the firmware yes.

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".
Turbofreakdotcom
Experienced MS/Extra'er
Posts: 201
Joined: Mon Sep 15, 2008 9:29 pm

Re: Changing values in the code

Post by Turbofreakdotcom »

Oh, how do I recompile?
Updated 6/20/18:
87 Supra-3.0 1.5JZ-A340 trans
MS2 ECU
MS2 Trans controller
Turbofreakdotcom
Experienced MS/Extra'er
Posts: 201
Joined: Mon Sep 15, 2008 9:29 pm

Re: Changing values in the code

Post by Turbofreakdotcom »

Can a debounce value field be able to be added to the paddle menu?
Updated 6/20/18:
87 Supra-3.0 1.5JZ-A340 trans
MS2 ECU
MS2 Trans controller
jsmcortina
Site Admin
Posts: 39615
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Changing values in the code

Post by jsmcortina »

Turbofreakdotcom wrote:Oh, how do I recompile?
Read the topic in the MS2/Extra development subforum about coding.

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".
Turbofreakdotcom
Experienced MS/Extra'er
Posts: 201
Joined: Mon Sep 15, 2008 9:29 pm

Re: Changing values in the code

Post by Turbofreakdotcom »

Thank you James.
Updated 6/20/18:
87 Supra-3.0 1.5JZ-A340 trans
MS2 ECU
MS2 Trans controller
Post Reply