--- revised for work around #

This commit is contained in:
Yunhorn 2025-01-14 20:57:40 +08:00
parent 0e43ea642c
commit 0266af8858
3 changed files with 6 additions and 6 deletions

View File

@ -1034,7 +1034,7 @@ static void SendTxData(void)
#ifdef STS_P2
#ifdef VL53LX // VL53L1X
AppData.Buffer[i++] = (uint8_t) 6; //sum of below
AppData.Buffer[i++] = (uint8_t) 15; //sum of below
AppData.Buffer[i++] = (uint8_t)((sts_p2_sensor_data.Walk_In_People_Count>>8) & 0xFF);
AppData.Buffer[i++] = (uint8_t)(sts_p2_sensor_data.Walk_In_People_Count & 0xFF);
@ -1044,7 +1044,7 @@ static void SendTxData(void)
AppData.Buffer[i++] = (uint8_t)((sts_p2_sensor_data.Walk_Around_People_Count>>8) & 0xFF);
AppData.Buffer[i++] = (uint8_t)(sts_p2_sensor_data.Walk_Around_People_Count & 0xFF);
#endif // VL53L1X
#if 0
#if 1
#ifdef VL53LX // VL53L1X
AppData.Buffer[i++] = (uint8_t)((sts_p2_sensor_data.Count_Period) & 0xFF);
AppData.Buffer[i++] = (uint8_t)((sts_p2_sensor_data.Count_Period_Unit) & 0xFF);

View File

@ -369,8 +369,8 @@ int ProcessPeopleCountingData(int16_t Distance, uint8_t zone, uint8_t RangeStatu
if (PathTrackFillingSize == 4) {
// check exit or entry. no need to check PathTrack[0] == 0 , it is always the case
// if ((PathTrack[1] == 1) && (PathTrack[2] == 3) && (PathTrack[3] == 2)) {
if ((PathTrack[1] == 1) && (PathTrack[2] == 3)) { // 2025-JAN-90 aggressive mode
if ((PathTrack[1] == 1) && (PathTrack[2] == 3) && (PathTrack[3] == 2)) {
// if ((PathTrack[1] == 1) && (PathTrack[2] == 3)) { // 2025-JAN-90 aggressive mode
// This an entry
PeopleCount ++;
// reset the table filling size in case an entry or exit just found
@ -387,8 +387,8 @@ int ProcessPeopleCountingData(int16_t Distance, uint8_t zone, uint8_t RangeStatu
// LED1_ON; //TODO XXX, CHANGE TO (LED_IN_ON && LED_OUT_OFF);
// LED1_TOGGLE;
// } else if ((PathTrack[1] == 2) && (PathTrack[2] == 3) && (PathTrack[3] == 1)) {
} else if ((PathTrack[1] == 2) && (PathTrack[2] == 3)) { // 2025-JAN-90 aggressive mode
} else if ((PathTrack[1] == 2) && (PathTrack[2] == 3) && (PathTrack[3] == 1)) {
// } else if ((PathTrack[1] == 2) && (PathTrack[2] == 3)) { // 2025-JAN-90 aggressive mode
// This an exit
PeopleCount --;
// reset the table filling size in case an entry or exit just found