rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions
mazda_miata_vvt.h File Reference

Functions

void setMiataNB2_Proteus_TCU ()
 
void setMazdaMiataNB1 ()
 
void setMazdaMiataNB2 ()
 
void setMazdaMiataNB2_36 ()
 

Function Documentation

◆ setMazdaMiataNB1()

void setMazdaMiataNB1 ( )

Definition at line 458 of file mazda_miata_vvt.cpp.

458 {
460 strcpy(engineConfiguration->engineCode, "NB1");
461
463
464 // Vehicle speed/gears
466 engineConfiguration->gearRatio[0] = 3.136;
467 engineConfiguration->gearRatio[1] = 1.888;
468 engineConfiguration->gearRatio[2] = 1.330;
469 engineConfiguration->gearRatio[3] = 1.000;
470 engineConfiguration->gearRatio[4] = 0.814;
471
472 // These may need to change based on your real car
475}
static constexpr engine_configuration_s * engineConfiguration
static void setCommonMazdaNB()
scaled_channel< uint16_t, 100, 1 > gearRatio[TCU_GEAR_COUNT]

Referenced by applyEngineType().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setMazdaMiataNB2()

void setMazdaMiataNB2 ( )

set engine_type 69

Definition at line 477 of file mazda_miata_vvt.cpp.

477 {
479 strcpy(engineConfiguration->vehicleName, "H72 test");
480
481
482 // set tps_min 90
483 engineConfiguration->tpsMin = 110; // convert 12to10 bit (ADC/4)
484
485}
static void setMazdaMiataEngineNB2Defaults()

Referenced by applyEngineType(), and setMazdaMiataNB2_36().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setMazdaMiataNB2_36()

void setMazdaMiataNB2_36 ( )

Definition at line 487 of file mazda_miata_vvt.cpp.

Referenced by applyEngineType().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setMiataNB2_Proteus_TCU()

void setMiataNB2_Proteus_TCU ( )

https://github.com/rusefi/rusefi/wiki/Mazda-Miata-2001 set engine_type 1

https://github.com/rusefi/rusefi/wiki/HOWTO-TCU-A42DE-on-Proteus

Definition at line 402 of file mazda_miata_vvt.cpp.

402 {
404
405 strcpy(engineConfiguration->engineCode, "NB2");
406 strcpy(engineConfiguration->engineMake, ENGINE_MAKE_MAZDA);
407 strcpy(engineConfiguration->vehicleName, "TCU test");
408
412
413
416
418
419 engineConfiguration->driveWheelRevPerKm = 544; // 205/50R15
422
423 // "Highside 2"
425 // "Highside 1"
427
428 // "Digital 1" green
431 // "Digital 6" white
434
435 // R
436 config->tcuSolenoidTable[0][0] = 1;
437 config->tcuSolenoidTable[0][1] = 0;
438 // P/N
439 config->tcuSolenoidTable[1][0] = 1;
440 config->tcuSolenoidTable[1][1] = 0;
441 // 1
442 config->tcuSolenoidTable[2][0] = 1;
443 config->tcuSolenoidTable[2][1] = 0;
444 // 2
445 config->tcuSolenoidTable[3][0] = 1;
446 config->tcuSolenoidTable[3][1] = 1;
447 // 3
448 config->tcuSolenoidTable[4][0] = 0;
449 config->tcuSolenoidTable[4][1] = 1;
450 // 4
451 config->tcuSolenoidTable[5][0] = 0;
452 config->tcuSolenoidTable[5][1] = 0;
453
454}
@ Unassigned
static constexpr persistent_config_s * config
brain_input_pin_e triggerInputPins[TRIGGER_INPUT_PIN_COUNT]
uint8_t tcuSolenoidTable[TCU_SOLENOID_COUNT][TCU_GEAR_COUNT]

Referenced by applyEngineType().

Here is the caller graph for this function:

Go to the source code of this file.