auto-sync
This commit is contained in:
parent
30d7736e55
commit
29c2217977
|
@ -1,22 +1,44 @@
|
|||
/*
|
||||
* @file mazda_miata_1_6.cpp
|
||||
*
|
||||
* set_engine_type 41
|
||||
*
|
||||
* @date Apr 16, 2016
|
||||
* @author Andrey Belomutskiy, (c) 2012-2016
|
||||
*/
|
||||
|
||||
#include "engine_template.h"
|
||||
#include "custom_engine.h"
|
||||
#include "fsio_impl.h"
|
||||
|
||||
EXTERN_ENGINE;
|
||||
|
||||
void setMiataNA_1_6_Configuration(DECLARE_ENGINE_PARAMETER_F) {
|
||||
setCustomEngineConfiguration(PASS_ENGINE_PARAMETER_F);
|
||||
|
||||
engineConfiguration->trigger.type = TT_MAZDA_MIATA_NA;
|
||||
|
||||
engineConfiguration->specs.cylindersCount = 4;
|
||||
engineConfiguration->specs.firingOrder = FO_1_THEN_3_THEN_4_THEN2;
|
||||
|
||||
commonFrankensoAnalogInputs(engineConfiguration);
|
||||
engineConfiguration->vbattDividerCoeff = 9.75;// ((float) (8.2 + 33)) / 8.2 * 2;
|
||||
|
||||
|
||||
// warning light
|
||||
/**
|
||||
* to test
|
||||
* set_fsio_setting 0 6200
|
||||
* set_fsio_setting 1 14
|
||||
* set_fsio_setting 2 95
|
||||
*
|
||||
* eval "rpm 0 fsio_setting > coolant 1 fsio_setting > | vbatt 2 fsio_setting > |"
|
||||
*/
|
||||
engineConfiguration->bc.fsio_setting[0] = 2000; // RPM threshold
|
||||
engineConfiguration->bc.fsio_setting[1] = 13; // voltage threshold
|
||||
engineConfiguration->bc.fsio_setting[2] = 40; // CLT threshold
|
||||
|
||||
setFsio(0, GPIOC_13, "rpm 0 fsio_setting > coolant 1 fsio_setting > | vbatt 2 fsio_setting > |" PASS_ENGINE_PARAMETER);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue