From a154838a2746dd660b5c85ac5506e90ce68f76f3 Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Mon, 4 Mar 2024 11:09:52 +0800 Subject: [PATCH] minor change , reduce tof delay to 1 ms --- Core/Inc/yunhorn_sts_prd_conf.h | 4 ++-- STM32CubeIDE/.settings/language.settings.xml | 4 ++-- TOF/App/app_tof_vl53l0x_range.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Core/Inc/yunhorn_sts_prd_conf.h b/Core/Inc/yunhorn_sts_prd_conf.h index cb7fe86..2da4613 100644 --- a/Core/Inc/yunhorn_sts_prd_conf.h +++ b/Core/Inc/yunhorn_sts_prd_conf.h @@ -241,8 +241,8 @@ #define MajorVer 24U -#define MinorVer 02U -#define SubMinorVer 21U +#define MinorVer 03U +#define SubMinorVer 4U #define FirmwareVersion 3U #define YUNHORN_STS_MAX_NVM_CFG_SIZE 64U #define YUNHORN_STS_AC_CODE_SIZE 20U diff --git a/STM32CubeIDE/.settings/language.settings.xml b/STM32CubeIDE/.settings/language.settings.xml index f00ccb2..a3a8531 100644 --- a/STM32CubeIDE/.settings/language.settings.xml +++ b/STM32CubeIDE/.settings/language.settings.xml @@ -5,7 +5,7 @@ - + @@ -16,7 +16,7 @@ - + diff --git a/TOF/App/app_tof_vl53l0x_range.c b/TOF/App/app_tof_vl53l0x_range.c index 6777855..99a6f7a 100644 --- a/TOF/App/app_tof_vl53l0x_range.c +++ b/TOF/App/app_tof_vl53l0x_range.c @@ -411,7 +411,7 @@ void STS_TOF_VL53L0X_Range_Process(void) sts_tof_distance_data[i] = (int)VL53L0XDevs[i].LeakyRange ==0?STS_MAX_L0_RANGE:(int)VL53L0XDevs[i].LeakyRange; } - HAL_Delay(5); + HAL_Delay(1); } // for i < MAX_TOF_COUNT if (sensor_data_ready != 0) { APP_LOG(TS_OFF, VLEVEL_L, "\r\n## Measured Range: \r\nTOF #0 = %4u mm, \r\nTOF #1 = %4u mm, \r\nTOF #2 = %4u mm\r\n",