improve fall down debug message
This commit is contained in:
parent
d0ae66dbcd
commit
0e0be968dc
|
@ -466,7 +466,7 @@ int sts_presence_rss_fall_rise_detection(void)
|
||||||
sts_presence_rss_score = average_score;
|
sts_presence_rss_score = average_score;
|
||||||
if (sts_rss_result) //if (average_score !=0) //if (sts_rss_result)
|
if (sts_rss_result) //if (average_score !=0) //if (sts_rss_result)
|
||||||
{
|
{
|
||||||
APP_LOG(TS_OFF, VLEVEL_H,"\r\n######## Motion: %u Distance=%u mm, Score=%u Average_result=%u out of %u \r\n",
|
APP_LOG(TS_OFF, VLEVEL_L,"\r\n######## Motion: %u Distance=%u mm, Score=%u Average_result=%u out of %u \r\n",
|
||||||
(uint8_t)sts_rss_result,(int) average_distance, (int)(average_score), (int)average_result, (int)iterations);
|
(uint8_t)sts_rss_result,(int) average_distance, (int)(average_score), (int)average_result, (int)iterations);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -106,6 +106,12 @@ extern volatile uint8_t last_sts_rss_result;
|
||||||
//extern volatile uint8_t last_sts_reed_hall_result;
|
//extern volatile uint8_t last_sts_reed_hall_result;
|
||||||
extern volatile uint8_t last_lamp_bar_color;
|
extern volatile uint8_t last_lamp_bar_color;
|
||||||
extern volatile float sts_presence_rss_distance;
|
extern volatile float sts_presence_rss_distance;
|
||||||
|
char sts_presence_fall_detection_message[5][20]={
|
||||||
|
"State_Normal",
|
||||||
|
"State_Fall_Down",
|
||||||
|
"State_Rising_Up",
|
||||||
|
"State_Laydown",
|
||||||
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -590,8 +596,8 @@ void STS_FallDetection_LampBarProcess(void)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
APP_LOG(TS_OFF, VLEVEL_L, "\r\n <<<<<<<<<<<<<< Fall Rise state=%d, send buf size = %d \r\n",
|
APP_LOG(TS_OFF, VLEVEL_L, "\r\n <<<<<<<<<<<<<< Fall Rise state=%d, send buf size = %25s \r\n",
|
||||||
sts_fall_rising_detected_result, i )
|
sts_presence_fall_detection_message[sts_fall_rising_detected_result], i )
|
||||||
|
|
||||||
STS_SENSOR_Upload_Message((LORAWAN_USER_APP_PORT+2), i, buf);
|
STS_SENSOR_Upload_Message((LORAWAN_USER_APP_PORT+2), i, buf);
|
||||||
|
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue