auto-sync

This commit is contained in:
rusEfi 2016-05-01 10:10:49 -04:00
parent 986f691e7b
commit ea47761777
8 changed files with 30 additions and 8 deletions

View File

@ -3,6 +3,10 @@
* *
* set_engine_type 14 * set_engine_type 14
* *
* http://rusefi.com/wiki/index.php?title=Vehicle:Mazda_Protege_1993
* http://rusefi.com/forum/viewtopic.php?f=3&t=537
* http://rusefi.com/forum/viewtopic.php?f=3&t=822
*
* @date Jan 3, 2016 * @date Jan 3, 2016
* @author Andrey Belomutskiy, (c) 2012-2016 * @author Andrey Belomutskiy, (c) 2012-2016
*/ */

View File

@ -5,7 +5,7 @@
* set_engine_type 14 * set_engine_type 14
* http://rusefi.com/wiki/index.php?title=Vehicle:Mazda_Protege_1993 * http://rusefi.com/wiki/index.php?title=Vehicle:Mazda_Protege_1993
* *
* MIATA_1990 = 19 * MIATA_1990 = 19 (Frankenstein board)
* MIATA_1994_DEVIATOR = 20 * MIATA_1994_DEVIATOR = 20
* MIATA_1996 = 21 * MIATA_1996 = 21
* MIATA_1994_SPAGS = 24 * MIATA_1994_SPAGS = 24
@ -140,8 +140,6 @@ static void commonMiataNa(DECLARE_ENGINE_PARAMETER_F) {
boardConfiguration->idle.solenoidFrequency = 160; boardConfiguration->idle.solenoidFrequency = 160;
engineConfiguration->globalTriggerAngleOffset = 294;
// Frankenstein: high side #1 is PE8 // Frankenstein: high side #1 is PE8
// Frankenstein: high side #2 is PE10 // Frankenstein: high side #2 is PE10
// Frankenstein: high side #3 is PE12 // Frankenstein: high side #3 is PE12
@ -200,6 +198,9 @@ void common079721_2351(engine_configuration_s *engineConfiguration, board_config
} }
/**
* Frankenstein board
*/
void setMiata1990(DECLARE_ENGINE_PARAMETER_F) { void setMiata1990(DECLARE_ENGINE_PARAMETER_F) {
common079721_2351(engineConfiguration, boardConfiguration); common079721_2351(engineConfiguration, boardConfiguration);

View File

@ -1,6 +1,7 @@
/* /*
* @file mazda_miata_1_6.cpp * @file mazda_miata_1_6.cpp
* *
* Frankenso board
* set_engine_type 41 * set_engine_type 41
* *
* @date Apr 16, 2016 * @date Apr 16, 2016
@ -10,6 +11,7 @@
#include "engine_template.h" #include "engine_template.h"
#include "custom_engine.h" #include "custom_engine.h"
#include "fsio_impl.h" #include "fsio_impl.h"
#include "thermistors.h"
EXTERN_ENGINE; EXTERN_ENGINE;
@ -23,8 +25,20 @@ void setMiataNA_1_6_Configuration(DECLARE_ENGINE_PARAMETER_F) {
engineConfiguration->vbattDividerCoeff = 9.75;// ((float) (8.2 + 33)) / 8.2 * 2; engineConfiguration->vbattDividerCoeff = 9.75;// ((float) (8.2 + 33)) / 8.2 * 2;
boardConfiguration->idle.solenoidFrequency = 160;
boardConfiguration->idle.solenoidPin = GPIO_UNASSIGNED; boardConfiguration->idle.solenoidPin = GPIO_UNASSIGNED;
setCommonNTCSensor(&engineConfiguration->clt);
engineConfiguration->clt.config.bias_resistor = 2700;
setCommonNTCSensor(&engineConfiguration->iat);
engineConfiguration->iat.config.bias_resistor = 2700;
/**
* oil pressure line
* adc4/pa4/W47
*/
// warning light // warning light
/** /**
* to test * to test

View File

@ -1,4 +1,4 @@
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Apr 25 22:10:39 EDT 2016 // this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun May 01 09:49:44 EDT 2016
// begin // begin
#ifndef ENGINE_CONFIGURATION_GENERATED_H_ #ifndef ENGINE_CONFIGURATION_GENERATED_H_
#define ENGINE_CONFIGURATION_GENERATED_H_ #define ENGINE_CONFIGURATION_GENERATED_H_
@ -1707,4 +1707,4 @@ typedef struct {
#endif #endif
// end // end
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Apr 25 22:10:39 EDT 2016 // this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun May 01 09:49:44 EDT 2016

View File

@ -80,6 +80,7 @@ typedef enum {
HONDA_ACCORD_CD_DIP = 18, HONDA_ACCORD_CD_DIP = 18,
// Frankenstein board
MIATA_1990 = 19, MIATA_1990 = 19,
MIATA_1994_DEVIATOR = 20, MIATA_1994_DEVIATOR = 20,
MIATA_1996 = 21, MIATA_1996 = 21,

View File

@ -1,5 +1,5 @@
#define LE_COMMAND_LENGTH 200 #define LE_COMMAND_LENGTH 200
#define TS_FILE_VERSION 20160312 #define TS_FILE_VERSION 20160430
#define WARMUP_TARGET_AFR_SIZE 4 #define WARMUP_TARGET_AFR_SIZE 4
#define MAP_ANGLE_SIZE 8 #define MAP_ANGLE_SIZE 8
#define MAP_WINDOW_SIZE 8 #define MAP_WINDOW_SIZE 8

View File

@ -25,6 +25,8 @@ void initializeMazdaMiataNaShape(TriggerShape *s DECLARE_ENGINE_PARAMETER_S) {
s->setTriggerSynchronizationGap(MIATA_NA_GAP); s->setTriggerSynchronizationGap(MIATA_NA_GAP);
s->useRiseEdge = false; s->useRiseEdge = false;
s->tdcPosition = 294;
s->isSynchronizationNeeded = true; s->isSynchronizationNeeded = true;
/** /**

View File

@ -19,8 +19,8 @@ struct_no_prefix engine_configuration_s
! !
! this is used to confirm that firmware and TunerStudio are using the same rusefi.ini version ! this is used to confirm that firmware and TunerStudio are using the same rusefi.ini version
! ! so not forget to change fileVersion in rusefi.ini
#define TS_FILE_VERSION 20160312 #define TS_FILE_VERSION 20160430
#define WARMUP_TARGET_AFR_SIZE 4 #define WARMUP_TARGET_AFR_SIZE 4