mirror of https://github.com/rusefi/rusefi-1.git
miata defaults progress
This commit is contained in:
parent
66ec33f0e4
commit
9d9b6a1394
|
@ -1149,7 +1149,17 @@ void setFrankenso0_1_joystick(engine_configuration_s *engineConfiguration) {
|
||||||
boardConfiguration->joystickDPin = GPIOD_11;
|
boardConfiguration->joystickDPin = GPIOD_11;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void copyTargetAfrTable(fuel_table_t const source, afr_table_t destination) {
|
||||||
|
// todo: extract a template!
|
||||||
|
for (int loadIndex = 0; loadIndex < FUEL_LOAD_COUNT; loadIndex++) {
|
||||||
|
for (int rpmIndex = 0; rpmIndex < FUEL_RPM_COUNT; rpmIndex++) {
|
||||||
|
destination[loadIndex][rpmIndex] = AFR_STORAGE_MULT * source[loadIndex][rpmIndex];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void copyFuelTable(fuel_table_t const source, fuel_table_t destination) {
|
void copyFuelTable(fuel_table_t const source, fuel_table_t destination) {
|
||||||
|
// todo: extract a template!
|
||||||
for (int loadIndex = 0; loadIndex < FUEL_LOAD_COUNT; loadIndex++) {
|
for (int loadIndex = 0; loadIndex < FUEL_LOAD_COUNT; loadIndex++) {
|
||||||
for (int rpmIndex = 0; rpmIndex < FUEL_RPM_COUNT; rpmIndex++) {
|
for (int rpmIndex = 0; rpmIndex < FUEL_RPM_COUNT; rpmIndex++) {
|
||||||
destination[loadIndex][rpmIndex] = source[loadIndex][rpmIndex];
|
destination[loadIndex][rpmIndex] = source[loadIndex][rpmIndex];
|
||||||
|
@ -1158,6 +1168,7 @@ void copyFuelTable(fuel_table_t const source, fuel_table_t destination) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void copyTimingTable(ignition_table_t const source, ignition_table_t destination) {
|
void copyTimingTable(ignition_table_t const source, ignition_table_t destination) {
|
||||||
|
// todo: extract a template!
|
||||||
for (int k = 0; k < IGN_LOAD_COUNT; k++) {
|
for (int k = 0; k < IGN_LOAD_COUNT; k++) {
|
||||||
for (int rpmIndex = 0; rpmIndex < IGN_RPM_COUNT; rpmIndex++) {
|
for (int rpmIndex = 0; rpmIndex < IGN_RPM_COUNT; rpmIndex++) {
|
||||||
destination[k][rpmIndex] = source[k][rpmIndex];
|
destination[k][rpmIndex] = source[k][rpmIndex];
|
||||||
|
|
|
@ -60,6 +60,7 @@ int getGlobalConfigurationVersion(void);
|
||||||
void commonFrankensoAnalogInputs(engine_configuration_s *engineConfiguration);
|
void commonFrankensoAnalogInputs(engine_configuration_s *engineConfiguration);
|
||||||
void setFrankenso0_1_joystick(engine_configuration_s *engineConfiguration);
|
void setFrankenso0_1_joystick(engine_configuration_s *engineConfiguration);
|
||||||
|
|
||||||
|
void copyTargetAfrTable(fuel_table_t const source, afr_table_t destination);
|
||||||
void copyFuelTable(fuel_table_t const source, fuel_table_t destination);
|
void copyFuelTable(fuel_table_t const source, fuel_table_t destination);
|
||||||
void copyTimingTable(ignition_table_t const source, ignition_table_t destination);
|
void copyTimingTable(ignition_table_t const source, ignition_table_t destination);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue