auto-sync

This commit is contained in:
rusEfi 2015-01-31 07:07:08 -06:00
parent a6d22af2c3
commit d3a73d148b
6 changed files with 24 additions and 15 deletions

View File

@ -292,7 +292,7 @@ void setFordEscortGt(engine_configuration_s *engineConfiguration, board_configur
boardConfiguration->fanPin = GPIO_UNASSIGNED; boardConfiguration->fanPin = GPIO_UNASSIGNED;
boardConfiguration->injectionPins[0] = GPIOD_5; boardConfiguration->injectionPins[0] = GPIOD_5;
boardConfiguration->injectionPins[2] = GPIOE_2; boardConfiguration->injectionPins[1] = GPIOE_2;
// set_whole_fuel_map 3 // set_whole_fuel_map 3
setWholeFuelMap(engineConfiguration, 3); setWholeFuelMap(engineConfiguration, 3);

View File

@ -1,4 +1,4 @@
// this section was generated by config_definition.jar on Fri Jan 30 11:53:41 EST 2015 // this section was generated by config_definition.jar on Sat Jan 31 07:43:00 EST 2015
// begin // begin
#include "rusefi_types.h" #include "rusefi_types.h"
typedef struct { typedef struct {
@ -471,7 +471,7 @@ typedef struct {
/** /**
* offset 652 * offset 652
*/ */
float fsio_setting[LE_COMMAND_COUNT]; fsio_setting_t fsio_setting[LE_COMMAND_COUNT];
/** /**
* offset 716 * offset 716
*/ */
@ -990,6 +990,9 @@ typedef struct {
* delay is needed * delay is needed
offset 9492 bit 12 */ offset 9492 bit 12 */
bool_t isManualSpinningMode : 1; bool_t isManualSpinningMode : 1;
/**
offset 9492 bit 13 */
bool_t twoWireBatch : 1;
/** /**
* offset 9496 * offset 9496
*/ */
@ -1109,4 +1112,4 @@ typedef struct {
} engine_configuration_s; } engine_configuration_s;
// end // end
// this section was generated by config_definition.jar on Fri Jan 30 11:53:41 EST 2015 // this section was generated by config_definition.jar on Sat Jan 31 07:43:00 EST 2015

View File

@ -90,7 +90,8 @@ void setSingleCoilDwell(engine_configuration_s *engineConfiguration) {
#if EFI_ENGINE_CONTROL || defined(__DOXYGEN__) #if EFI_ENGINE_CONTROL || defined(__DOXYGEN__)
OutputSignalList injectonSignals CCM_OPTIONAL; OutputSignalList injectonSignals CCM_OPTIONAL;
void initializeIgnitionActions(angle_t advance, angle_t dwellAngle, IgnitionEventList *list DECLARE_ENGINE_PARAMETER_S) { void initializeIgnitionActions(angle_t advance, angle_t dwellAngle,
IgnitionEventList *list DECLARE_ENGINE_PARAMETER_S) {
efiAssertVoid(engineConfiguration->cylindersCount > 0, "cylindersCount"); efiAssertVoid(engineConfiguration->cylindersCount > 0, "cylindersCount");
list->reset(); list->reset();
@ -112,7 +113,8 @@ void initializeIgnitionActions(angle_t advance, angle_t dwellAngle, IgnitionEven
} }
} }
void FuelSchedule::registerInjectionEvent(NamedOutputPin *output, float angle, bool_t isSimultanious DECLARE_ENGINE_PARAMETER_S) { void FuelSchedule::registerInjectionEvent(NamedOutputPin *output, float angle,
bool_t isSimultanious DECLARE_ENGINE_PARAMETER_S) {
if (!isSimultanious && !isPinAssigned(output)) { if (!isSimultanious && !isPinAssigned(output)) {
// todo: extact method for this index math // todo: extact method for this index math
warning(OBD_PCM_Processor_Fault, "no_pin_inj #%s", output->name); warning(OBD_PCM_Processor_Fault, "no_pin_inj #%s", output->name);
@ -180,12 +182,15 @@ void FuelSchedule::addFuelEvents(injection_mode_e mode DECLARE_ENGINE_PARAMETER_
+ i * (float) engineConfiguration->engineCycle / engineConfiguration->cylindersCount; + i * (float) engineConfiguration->engineCycle / engineConfiguration->cylindersCount;
registerInjectionEvent(&enginePins.injectors[index], angle, false PASS_ENGINE_PARAMETER); registerInjectionEvent(&enginePins.injectors[index], angle, false PASS_ENGINE_PARAMETER);
if (engineConfiguration->twoWireBatch) {
/** /**
* also fire the 2nd half of the injectors so that we can implement a batch mode on individual wires * also fire the 2nd half of the injectors so that we can implement a batch mode on individual wires
*/ */
index = index + (engineConfiguration->cylindersCount / 2); index = index + (engineConfiguration->cylindersCount / 2);
registerInjectionEvent(&enginePins.injectors[index], angle, false PASS_ENGINE_PARAMETER); registerInjectionEvent(&enginePins.injectors[index], angle, false PASS_ENGINE_PARAMETER);
} }
}
break; break;
default: default:
firmwareError("Unexpected injection mode %d", mode); firmwareError("Unexpected injection mode %d", mode);

View File

@ -260,5 +260,5 @@ int getRusEfiVersion(void) {
return 1; // this is here to make the compiler happy about the unused array return 1; // this is here to make the compiler happy about the unused array
if (UNUSED_CCM_SIZE == 0) if (UNUSED_CCM_SIZE == 0)
return 1; // this is here to make the compiler happy about the unused array return 1; // this is here to make the compiler happy about the unused array
return 20150128; return 20150131;
} }

View File

@ -428,6 +428,7 @@ bit hasMapSensor;@see isMapAveragingEnabled
bit isIdleThreadEnabled bit isIdleThreadEnabled
bit isPrintTriggerSynchDetails bit isPrintTriggerSynchDetails
bit isManualSpinningMode;Usually if we have no trigger events that means engine is stopped\nUnless we are troubleshooting and spinning the engine by hand - this case a longer\ndelay is needed bit isManualSpinningMode;Usually if we have no trigger events that means engine is stopped\nUnless we are troubleshooting and spinning the engine by hand - this case a longer\ndelay is needed
bit twoWireBatch

View File

@ -1,5 +1,5 @@
// This file was generated by Version2Header // This file was generated by Version2Header
// Mon Jan 26 21:23:28 EST 2015 // Sat Jan 31 07:53:06 EST 2015
#ifndef VCS_VERSION #ifndef VCS_VERSION
#define VCS_VERSION "6545" #define VCS_VERSION "6613"
#endif #endif