auto-sync

This commit is contained in:
rusEfi 2016-04-19 20:03:53 -04:00
parent 71c3f8de6a
commit 26c14a4b4c
4 changed files with 16 additions and 7 deletions

View File

@ -24,19 +24,20 @@ void setMiataNA_1_6_Configuration(DECLARE_ENGINE_PARAMETER_F) {
commonFrankensoAnalogInputs(engineConfiguration);
engineConfiguration->vbattDividerCoeff = 9.75;// ((float) (8.2 + 33)) / 8.2 * 2;
boardConfiguration->idle.solenoidPin = GPIO_UNASSIGNED;
// warning light
/**
* to test
* set_fsio_setting 0 6200
* set_fsio_setting 1 14
* set_fsio_setting 2 95
* set_fsio_setting 1 95
* set_fsio_setting 3 14
*
* 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
engineConfiguration->bc.fsio_setting[1] = 40; // CLT threshold
engineConfiguration->bc.fsio_setting[2] = 13; // voltage threshold
setFsio(0, GPIOC_13, "rpm 0 fsio_setting > coolant 1 fsio_setting > | vbatt 2 fsio_setting > |" PASS_ENGINE_PARAMETER);

View File

@ -59,12 +59,17 @@ LENameOrdinalPair::LENameOrdinalPair(le_action_e action, const char *name) {
}
LEElement::LEElement() {
clear();
}
void LEElement::clear() {
action = LE_UNDEFINED;
next = NULL;
fValue = NAN;
iValue = 0;
}
//void LEElement::init(le_action_e action, int iValue) {
// this->action = action;
// this->iValue = iValue;
@ -112,7 +117,7 @@ static bool float2bool(float v) {
float LECalculator::pop(le_action_e action) {
if (stack.size() == 0) {
warning(OBD_PCM_Processor_Fault, "empty stack for %d", action);
warning(OBD_PCM_Processor_Fault, "empty stack for action=%d", action);
return NAN;
}
return stack.pop();
@ -335,7 +340,9 @@ LEElement *LEElementPool::next() {
firmwareError("LE_ELEMENT_POOL_SIZE overflow");
return NULL;
}
return &pool[index++];
LEElement *result = &pool[index++];
result->clear();
return result;
}
bool isNumeric(const char* line) {

View File

@ -54,6 +54,7 @@ typedef enum {
class LEElement {
public:
LEElement();
void clear();
// void init(le_action_e action, int iValue);
void init(le_action_e action);
void init(le_action_e action, float fValue);

View File

@ -298,5 +298,5 @@ int getRusEfiVersion(void) {
return 123; // this is here to make the compiler happy about the unused array
if (UNUSED_CCM_SIZE[0] * 0 != 0)
return 3211; // this is here to make the compiler happy about the unused array
return 20160415;
return 20160419;
}