2024-08-23 07:17:36 -07:00
|
|
|
//
|
|
|
|
// Created by kifir on 8/23/24.
|
|
|
|
//
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-11-20 11:07:50 -08:00
|
|
|
#include "batt_lag_corr_curve.h"
|
|
|
|
|
2024-08-23 07:17:36 -07:00
|
|
|
namespace engine_configuration_defaults {
|
2024-08-23 07:36:53 -07:00
|
|
|
/* A/C Settings: */
|
|
|
|
constexpr float AC_DELAY = 0.5f;
|
|
|
|
constexpr uint16_t MIN_AC_PRESSURE = 100;
|
|
|
|
constexpr uint16_t MAX_AC_PRESSURE = 300;
|
2024-08-23 07:17:36 -07:00
|
|
|
constexpr float AC_PRESSURE_ENABLE_HYST = 10.0f;
|
2024-10-02 07:00:39 -07:00
|
|
|
|
|
|
|
/* Shift Torque Reduction (Flat Shift): */
|
|
|
|
constexpr bool ENABLE_SHIFT_TORQUE_REDUCTION = false;
|
|
|
|
constexpr torqueReductionActivationMode_e TORQUE_REDUCTION_ACTIVATION_MODE = TORQUE_REDUCTION_BUTTON;
|
|
|
|
constexpr switch_input_pin_e TORQUE_REDUCTION_TRIGGER_PIN = Gpio::Unassigned;
|
|
|
|
constexpr bool TORQUE_REDUCTION_TRIGGER_PIN_INVERTED = false;
|
2024-10-02 10:54:35 -07:00
|
|
|
constexpr float TORQUE_REDUCTION_TIME = 0.0f;
|
2024-11-02 10:39:26 -07:00
|
|
|
constexpr bool LIMIT_TORQUE_REDUCTION_TIME = false;
|
2024-10-03 13:27:15 -07:00
|
|
|
constexpr float TORQUE_REDUCTION_ARMING_RPM = 0.0f;
|
|
|
|
constexpr float TORQUE_REDUCTION_ARMING_APP = 0.0f;
|
2024-11-04 14:09:39 -08:00
|
|
|
constexpr int8_t TORQUE_REDUCTION_IGNITION_CUT = 0;
|
2024-11-05 11:07:08 -08:00
|
|
|
constexpr float TORQUE_REDUCTION_IGNITION_RETARD = 0.0f;
|
2024-10-02 07:00:39 -07:00
|
|
|
|
|
|
|
/* Launch Control: */
|
|
|
|
constexpr switch_input_pin_e LAUNCH_ACTIVATE_PIN = Gpio::Unassigned;
|
|
|
|
constexpr bool LAUNCH_ACTIVATE_PIN_INVERTED = false;
|
2024-11-05 06:27:49 -08:00
|
|
|
constexpr launchActivationMode_e LAUNCH_ACTIVATION_MODE = SWITCH_INPUT_LAUNCH;
|
|
|
|
constexpr int LAUNCH_SPEED_THRESHOLD = 0;
|
2024-11-20 11:07:50 -08:00
|
|
|
|
|
|
|
/* Injector */
|
|
|
|
constexpr bool INJECTOR_FLOW_AS_MASS_FLOW = false;
|
|
|
|
constexpr float INJECTOR_FLOW = 200.0f;
|
|
|
|
constexpr BattLagCorrCurve INJECTOR_BATT_LAG_CURR { 3.371f, 1.974f, 1.383f, 1.194f, 1.04f, 0.914f, 0.797f, 0.726 };
|
|
|
|
|
|
|
|
/* Secondary injector: */
|
|
|
|
constexpr float INJECTOR_SECONDARY_FLOW = INJECTOR_FLOW;
|
|
|
|
constexpr BattLagCorrCurve INJECTOR_SECONDARY_BATT_LAG_CURR = INJECTOR_BATT_LAG_CURR;
|
|
|
|
|
|
|
|
/* Staged injection: */
|
|
|
|
constexpr bool ENABLE_STAGED_INJECTION = false;
|
2024-08-23 07:17:36 -07:00
|
|
|
}
|