diff --git a/MainModesArbiter.c b/MainModesArbiter.c index e9d6298..b363b73 100644 --- a/MainModesArbiter.c +++ b/MainModesArbiter.c @@ -118,7 +118,7 @@ void LoadDataInFromModel(tMma *env) { env->rtDW.ADC_Data_Model.Sensor_Incar_Temp_FL = env->adcTask0.ADC0_Data.Sensor_Ambient_Temp; - LoggerFormatInfo(LOGGER, LOG_TASK_ARB, "Temp1 = %d; Temp2 = %d;", temp1, (int16_t) (temp2 * 10.0f)) + LoggerFormatInfo(LOGGER, LOG_TASK_ARB, "Temp1 = %d; Temp2 = %d; ADC = %d", temp1, (int16_t) (temp2 * 10.0f), env->adcTask0.ADC0_Data.Sensor_Ambient_Temp) /* // R1 = 91000 R2 = 20000 ((5 * (91000 + 20000)) / 20000 = 27.75 В) float U_IGN_CHECK = ((float) env->adcTask0.ADC0_Data.IGN_ANS * 27.75f) / 4095.0f; diff --git a/MainModesArbiter_InitStage.c b/MainModesArbiter_InitStage.c index 9700e7d..5ce85d2 100644 --- a/MainModesArbiter_InitStage.c +++ b/MainModesArbiter_InitStage.c @@ -60,7 +60,7 @@ static void Mma_InitSubSystems(tMma *env) { GpioPinSet(&env->gpios->power.PBATT_CK_EN, true); // Включение 5V (0 - ВКЛ) GpioPinSet(&env->gpios->power.SW5V_EN, false); -/* + GpioPinSet(&env->gpios->power.BTS5180_2EKA_FrontRearIncarMotor.Incar_Motor_Front_EN, true); GpioPinSet(&env->gpios->power.BTS5180_2EKA_FrontRearIncarMotor.Incar_EN_Diag, true); GpioPinSet(&env->gpios->power.BTS5180_2EKA_FrontRearIncarMotor.Incar_Motor_Rear_EN, true); @@ -89,7 +89,7 @@ static void Mma_InitSubSystems(tMma *env) { GpioPinSet(&env->gpios->power.VN7008AJ_RearLINActuatorPowerDriverC.LIN_ActPower_C, true); GpioPinSet(&env->gpios->power.VN7008AJ_RearLINActuatorPowerDriverC.EN_CurrentSensing_C, true); -*/ + // Indication_Init(&env->Indication, HVAC_DEV_MODE_STARTUP);