auto-sync

This commit is contained in:
rusEfi 2016-07-02 16:03:00 -04:00
parent fc40f27418
commit 70a5f52b8a
4 changed files with 14 additions and 8 deletions

View File

@ -76,13 +76,13 @@ void initAuxPid(Logging *sharedLogger) {
return;
}
if (boardConfiguration->fsioPins[0] == GPIO_UNASSIGNED) {
if (engineConfiguration->auxPidPins[0] == GPIO_UNASSIGNED) {
return;
}
startSimplePwmExt(&auxPid1, "Aux PID", boardConfiguration->fsioPins[0],
startSimplePwmExt(&auxPid1, "Aux PID", engineConfiguration->auxPidPins[0],
&auxPid1Pin,
boardConfiguration->fsioFrequency[0], 0.1, applyPinState);
engineConfiguration->auxPidFrequency[0], 0.1, applyPinState);
}
#endif

View File

@ -1,4 +1,4 @@
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sat Jul 02 13:50:20 EDT 2016
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sat Jul 02 13:56:26 EDT 2016
// begin
#ifndef ENGINE_CONFIGURATION_GENERATED_H_
#define ENGINE_CONFIGURATION_GENERATED_H_
@ -1667,7 +1667,11 @@ typedef struct {
/**
* offset 2472
*/
int unused[144];
int alternatorPwmFrequency;
/**
* offset 2476
*/
int unused[143];
/** total size 3048*/
} engine_configuration_s;
@ -1882,4 +1886,4 @@ typedef struct {
#endif
// end
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sat Jul 02 13:50:20 EDT 2016
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sat Jul 02 13:56:26 EDT 2016

View File

@ -856,7 +856,8 @@
#define auxPidFrequency2_offset 2466
#define auxPidFrequency3_offset 2468
#define auxPidFrequency4_offset 2470
#define unused_offset 2472
#define alternatorPwmFrequency_offset 2472
#define unused_offset 2476
#define le_formulas1_offset 3048
#define le_formulas2_offset 3248
#define le_formulas3_offset 3448

View File

@ -708,7 +708,8 @@ float[MAP_ACCEL_TAPER] mapAccelTaperMult;;"mult", 1, 0, 0.0, 300,
float tChargeMaxRpmMaxTps;
brain_pin_e[AUX_PID_COUNT iterate] auxPidPins;
fsio_pwm_freq_t[AUX_PID_COUNT iterate] auxPidFrequency;
int[144] unused;
int alternatorPwmFrequency;;"Hz", 1, 0, 0, 3000.0, 0
int[143] unused;
end_struct