issue here, hold TPS on all the time

This commit is contained in:
Yunhorn 2024-05-29 11:27:03 +08:00
parent 5f7cf5383f
commit fa8b62db57
5 changed files with 4868 additions and 4865 deletions

View File

@ -118,7 +118,7 @@ void SystemApp_Init(void)
/*Initialize the Sensors */
EnvSensors_Init();
MX_TOF_Init();
/*Init low power manager*/
UTIL_LPM_Init();
/* Disable Stand-by mode */

View File

@ -310,7 +310,8 @@ void STS_YunhornSTSEventP4_Process(void)
#endif
#if defined(TOF_1)||defined(TOF_2)
APP_LOG(TS_OFF, VLEVEL_H, "\r\n TOF_1, TOF_2 RANGING Process\r\n");
STS_TOF_VL53L0X_Range_Process();
//STS_TOF_VL53L0X_Range_Process();
MX_TOF_Process();
#endif
#ifdef TOF_3

View File

@ -812,6 +812,7 @@ static void SendTxData(void)
//UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_YunhornSTSEventP6), CFG_SEQ_Prio_0);
#if defined(YUNHORN_STS_R0_ENABLED)||defined(YUNHORN_STS_R5_ENABLED)
//UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_YunhornSTSEventP4), CFG_SEQ_Prio_0);
MX_TOF_Init();
MX_TOF_Process();
STS_R0_SENSOR_Read(&r0_data);
//r0_data.battery_mV = batteryLevelmV;
@ -1019,7 +1020,7 @@ static void OnJoinRequest(LmHandlerJoinParams_t *joinParams)
APP_LOG(TS_OFF, VLEVEL_M, "###### U/L FRAME:JOIN | DR:%d | PWR:%d\r\n", joinParams->Datarate, joinParams->TxPower);
}
UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_YunhornSTSEventP4), CFG_SEQ_Prio_0);
heart_beat_timer = 1;
UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_LoRaSendOnTxTimerOrButtonEvent), CFG_SEQ_Prio_0);
/* USER CODE END OnJoinRequest_1 */
}

Binary file not shown.

File diff suppressed because it is too large Load Diff