revised for non-narrow cubicle for PWH disablity

This commit is contained in:
Yunhorn 2025-05-19 19:35:55 +08:00
parent ad84e71893
commit 61aab8f440
6 changed files with 16 additions and 14 deletions

View File

@ -47,12 +47,12 @@ extern "C" {
/**
* @brief Verbose level for all trace logs
*/
#define VERBOSE_LEVEL VLEVEL_M
#define VERBOSE_LEVEL VLEVEL_OFF
/**
* @brief Enable trace logs
*/
#define APP_LOG_ENABLED 1
#define APP_LOG_ENABLED 0
/**
* @brief Activate monitoring (probes) of some internal RF signals for debug purpose
@ -75,7 +75,7 @@ extern "C" {
* @brief Enable/Disable MCU Debugger pins (dbg serial wires)
* @note by HW serial wires are ON by default, need to put them OFF to save power
*/
#define DEBUGGER_ENABLED 1
#define DEBUGGER_ENABLED 0
/**
* @brief Disable Low Power mode

View File

@ -543,7 +543,7 @@ void STS_YunhornSTSEventP5_Process(void)
}
#elif defined(L8)
//STS_TOF_VL53L8X_Process();
printf("\r\n P5 process \r\n");
//printf("\r\n P5 process \r\n");
STSWakeupScanTimerStop();
STS_TOF_L8_Process();

View File

@ -220,7 +220,7 @@ void STS_LMZ_Ambient_Height_Scan_Process(void)
if (status != BSP_ERROR_NONE)
{
printf("VL53L8A1_RANGING_SENSOR_Start failed\n");
APP_LOG(TS_OFF, VLEVEL_M, "\r\nVL53L8A1_RANGING_SENSOR_Start failed\n");
while (1);
}
#endif
@ -241,13 +241,15 @@ void STS_LMZ_Ambient_Height_Scan_Process(void)
//} else {
for (i = 0; i < 64; i++)
{
if (i % 8 ==0) APP_LOG(TS_OFF, VLEVEL_H, "\r\n[cm] ");
if (i % 8 ==0) {
APP_LOG(TS_OFF, VLEVEL_H, "\r\n[cm] ");
}
//if ((Result.ZoneResult[i].NumberOfTargets > 0))
{
//{
bg_distance[i] += (uint16_t) Result.ZoneResult[i].Distance[0];
idx[i] ++;
APP_LOG(TS_OFF, VLEVEL_H, "|%3d ", Result.ZoneResult[i].Distance[0]/10);
}
//}
//else APP_LOG(TS_OFF, VLEVEL_H, "|%3d ", 0);
}
@ -424,11 +426,11 @@ void sts_generate_fall_gesture_map(void)
#if 0
for (i=0; i<64; i++)
{
if (i%8==0) printf("\r\n");
printf("|%d ", (uint8_t)fhmos_gesture.maskoff[i]);
if (i%8==0) APP_LOG(TS_OFF, VLEVEL_M, "\r\n");
APP_LOG(TS_OFF, VLEVEL_M, "\r\n|%d ", (uint8_t)fhmos_gesture.maskoff[i]);
}
for (i=0; i<8; i++)
printf("%02X\r\n",fhmos_gesture_bitmap[i]);
APP_LOG(TS_OFF, VLEVEL_M, "\r\n%02X\r\n",fhmos_gesture_bitmap[i]);
#endif
sts_fhmos_bitmap_pending = FHMOS_BITMAP_GENERATED;
@ -558,7 +560,7 @@ static void MX_53L8A1_ThresholdDetection_Init(void)
if (status != BSP_ERROR_NONE)
{
printf("VL53L8A1_RANGING_SENSOR_Init failed\n");
APP_LOG(TS_OFF, VLEVEL_L, "\r\nVL53L8A1_RANGING_SENSOR_Init failed\n");
//while (1);
}
APP_LOG(TS_OFF, VLEVEL_M, "\r\n ----------- SERNSOR ID =%4x \r\n", sensor_id);
@ -582,7 +584,7 @@ void MX_53L8A1_ThresholdDetection_ConfigIT(uint32_t low_threshold, uint32_t high
if (status != BSP_ERROR_NONE)
{
printf("VL53L8A1_RANGING_SENSOR_Start failed\n");
APP_LOG(TS_OFF, VLEVEL_M, "\r\nVL53L8A1_RANGING_SENSOR_Start failed\n");
while (1);
}
}
@ -625,7 +627,7 @@ static void MX_53L8A1_ThresholdDetection_Process(void)
if (status != BSP_ERROR_NONE)
{
printf("VL53L8A1_RANGING_SENSOR_Start failed\n");
APP_LOG(TS_OFF, VLEVEL_L, "\r\nVL53L8A1_RANGING_SENSOR_Start failed\n");
while (1);
}
#if 0