L8 #81
|
@ -126,7 +126,7 @@ int main(void)
|
|||
/* USER CODE BEGIN 2 */
|
||||
STS_Sensor_Init();
|
||||
/* USER CODE END 2 */
|
||||
|
||||
STS_SENSOR_Distance_Test_Process();
|
||||
/* Infinite loop */
|
||||
/* USER CODE BEGIN WHILE */
|
||||
while (1)
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -534,6 +534,7 @@ void STS_SENSOR_Function_Test_Process(void);
|
|||
void STS_SENSOR_Distance_Test_Process(void);
|
||||
void STS_PRESENCE_SENSOR_Function_Test_Process(uint8_t *self_test_result, uint8_t count);
|
||||
void STS_PRESENCE_SENSOR_Distance_Measure_Process(void);
|
||||
void STS_TOF_L8_Init(void);
|
||||
void STS_TOF_L8_Process(void);
|
||||
void STS_TOF_L8_Reconfig(void);
|
||||
void MX_53L8A1_ThresholdDetection_ConfigIT(uint32_t sts_low_threshold, uint32_t sts_high_threshold);
|
||||
|
|
|
@ -543,6 +543,7 @@ void STS_YunhornSTSEventP5_Process(void)
|
|||
#elif defined(L8)
|
||||
//STS_TOF_VL53L8X_Process();
|
||||
//printf("\r\n P5 process \r\n");
|
||||
STSWakeupScanTimerStop();
|
||||
|
||||
STS_TOF_L8_Process();
|
||||
|
||||
|
@ -565,7 +566,7 @@ void STS_YunhornSTSEventP5_Process(void)
|
|||
|
||||
}
|
||||
#endif
|
||||
|
||||
STSWakeupScanTimerStart();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
|
|
@ -164,7 +164,7 @@ void MX_TOF_Init(void)
|
|||
//sts_high_threshold = sts_cfg_nvm.sensor_install_height_in_10cm ;
|
||||
//sts_low_threshold = sts_cfg_nvm.sensor_install_height_in_10cm -1400;
|
||||
STS_TOF_L8_Reconfig();
|
||||
|
||||
//int range=MX_TOF_Ranging_Process();
|
||||
#elif defined(STS_R1D)
|
||||
XWL55_WLE5_53L0X_Init();
|
||||
#endif
|
||||
|
@ -489,6 +489,9 @@ void STS_TOF_L8_Init(void)
|
|||
|
||||
void STS_TOF_L8_Process(void)
|
||||
{
|
||||
|
||||
|
||||
|
||||
//while (1)
|
||||
{
|
||||
/* interrupt mode */
|
||||
|
@ -593,7 +596,7 @@ static void MX_53L8A1_ThresholdDetection_Process(void)
|
|||
|
||||
sts_high_threshold = sts_sensor_install_height+ 400;
|
||||
sts_low_threshold = sts_high_threshold - 1400;
|
||||
APP_LOG(TS_OFF, VLEVEL_M, "\r\n Threshold High=%4d, Low=%4d \r\n", sts_high_threshold, sts_low_threshold);
|
||||
APP_LOG(TS_OFF, VLEVEL_H, "\r\n Threshold High=%4d, Low=%4d \r\n", sts_high_threshold, sts_low_threshold);
|
||||
|
||||
ITConfig.LowThreshold = sts_low_threshold;
|
||||
ITConfig.HighThreshold = sts_high_threshold;
|
||||
|
|
Loading…
Reference in New Issue