auto-sync
This commit is contained in:
parent
3edd502f44
commit
b59e57c40e
|
@ -80,5 +80,7 @@ void setSachs(engine_configuration_s *engineConfiguration) {
|
|||
|
||||
boardConfiguration->injectionPins[0] = GPIOC_15;
|
||||
|
||||
boardConfiguration->fuelPumpPin = GPIOE_6;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -23,6 +23,29 @@ EXTERN_ENGINE
|
|||
|
||||
static AccelEnrichmemnt instance;
|
||||
|
||||
static void setAccelThr(float value) {
|
||||
engineConfiguration->accelEnrichmentThreshold = value;
|
||||
}
|
||||
|
||||
static void setAccelMult(float value) {
|
||||
engineConfiguration->accelEnrichmentMultiplier = value;
|
||||
}
|
||||
|
||||
static void setDecelThr(float value) {
|
||||
engineConfiguration->deaccelEnrichmentThreshold = value;
|
||||
}
|
||||
|
||||
static void setDecelMult(float value) {
|
||||
engineConfiguration->deaccelEnrichmentMultiplier = value;
|
||||
}
|
||||
|
||||
void initAccelEnrichment(void) {
|
||||
addConsoleActionF("set_accel_th", setAccelThr);
|
||||
addConsoleActionF("set_accel_mult", setAccelMult);
|
||||
addConsoleActionF("set_decel_th", setDecelThr);
|
||||
addConsoleActionF("set_decel_mult", setDecelMult);
|
||||
}
|
||||
|
||||
void AccelEnrichmemnt::updateDiffEnrichment(engine_configuration_s *engineConfiguration, float engineLoad) {
|
||||
// for (int i = 3; i == 1; i--)
|
||||
// array[i] = array[i - 1];
|
||||
|
|
|
@ -36,7 +36,7 @@ private:
|
|||
cyclic_buffer cb;
|
||||
};
|
||||
|
||||
void initDiffEnrichment(void);
|
||||
void initAccelEnrichment(void);
|
||||
float getAccelEnrichment(void);
|
||||
|
||||
#endif /* ACC_ENRICHMENT_H_ */
|
||||
|
|
|
@ -23,6 +23,7 @@ public class AutoTest {
|
|||
|
||||
static void mainTestBody() {
|
||||
sendCommand("fl 1"); // just in case it was disabled
|
||||
testSachs();
|
||||
testMitsu();
|
||||
testBmwE34();
|
||||
testCitroenBerlingo();
|
||||
|
@ -35,6 +36,13 @@ public class AutoTest {
|
|||
testFordFiesta();
|
||||
}
|
||||
|
||||
private static void testSachs() {
|
||||
setEngineType(29);
|
||||
String msg = "BMW";
|
||||
IoUtil.changeRpm(1200);
|
||||
// todo: add more content
|
||||
}
|
||||
|
||||
private static void testBmwE34() {
|
||||
setEngineType(25);
|
||||
String msg = "BMW";
|
||||
|
|
Loading…
Reference in New Issue