auto-sync
This commit is contained in:
parent
e6d0ed6ecd
commit
ce2183b251
|
@ -762,6 +762,8 @@ case MT_DENSO183:
|
|||
return "MT_DENSO183";
|
||||
case MT_HONDA3BAR:
|
||||
return "MT_HONDA3BAR";
|
||||
case MT_DODGE_NEON_2003:
|
||||
return "MT_DODGE_NEON_2003";
|
||||
case Force_4b_cranking_map_type:
|
||||
return "Force_4b_cranking_map_type";
|
||||
case MT_CUSTOM:
|
||||
|
|
|
@ -451,6 +451,7 @@ typedef enum {
|
|||
MT_DENSO183 = 1,
|
||||
MT_MPX4250 = 2,
|
||||
MT_HONDA3BAR = 3,
|
||||
MT_DODGE_NEON_2003 = 4,
|
||||
|
||||
Force_4b_cranking_map_type = ENUM_SIZE_HACK,
|
||||
} air_pressure_sensor_type_e;
|
||||
|
|
|
@ -26,6 +26,8 @@ static FastInterpolation honda3bar(0.5, 91.422, 3.0, 0);
|
|||
|
||||
static FastInterpolation mpx4250(0, 8, 5, 260);
|
||||
|
||||
static FastInterpolation dodgeNeon2003(0.5, 0, 4.5, 100);
|
||||
|
||||
float decodePressure(float voltage, air_pressure_sensor_config_s * config) {
|
||||
switch (config->sensorType) {
|
||||
case MT_CUSTOM:
|
||||
|
@ -37,6 +39,8 @@ float decodePressure(float voltage, air_pressure_sensor_config_s * config) {
|
|||
return mpx4250.getValue(voltage);
|
||||
case MT_HONDA3BAR:
|
||||
return honda3bar.getValue(voltage);
|
||||
case MT_DODGE_NEON_2003:
|
||||
return dodgeNeon2003.getValue(voltage);
|
||||
default:
|
||||
firmwareError("Unknown MAP type: %d", config->sensorType);
|
||||
return NAN;
|
||||
|
|
|
@ -256,7 +256,7 @@ void firmwareError(const char *fmt, ...) {
|
|||
}
|
||||
}
|
||||
|
||||
static char UNUSED_RAM_SIZE[4000];
|
||||
static char UNUSED_RAM_SIZE[3000];
|
||||
|
||||
static char UNUSED_CCM_SIZE[9000] CCM_OPTIONAL;
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ extern "C"
|
|||
{
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#define CONSOLE_MAX_ACTIONS 128
|
||||
#define CONSOLE_MAX_ACTIONS 196
|
||||
|
||||
typedef enum {
|
||||
NO_PARAMETER,
|
||||
|
|
Loading…
Reference in New Issue