add debug info print
This commit is contained in:
parent
40156f709f
commit
7f16cbd9cf
|
@ -399,7 +399,7 @@ int sts_presence_rss_fall_rise_detection(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
acc_detector_presence_deactivate(handle);
|
acc_detector_presence_deactivate(handle);
|
||||||
APP_LOG(TS_OFF, VLEVEL_H,"First Half Presence Detection, Motion Count = %u \r\n", (int)motion_count);
|
APP_LOG(TS_OFF, VLEVEL_L,"First Half Presence Detection, Motion Count = %u \r\n", (int)motion_count);
|
||||||
|
|
||||||
// ******** Second Half detection of fall down and rise up
|
// ******** Second Half detection of fall down and rise up
|
||||||
|
|
||||||
|
@ -457,7 +457,7 @@ int sts_presence_rss_fall_rise_detection(void)
|
||||||
acc_integration_sleep_ms(1000 / DEFAULT_UPDATE_RATE_PRESENCE); // DEFAULT_UPDATE_RATE);
|
acc_integration_sleep_ms(1000 / DEFAULT_UPDATE_RATE_PRESENCE); // DEFAULT_UPDATE_RATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
APP_LOG(TS_OFF, VLEVEL_H,"Second Half, Fall Rise Detection, Motion Count = %u \r\n", (int)motion_count);
|
APP_LOG(TS_OFF, VLEVEL_L,"Second Half, Fall Rise Detection, Motion Count = %u \r\n", (int)motion_count);
|
||||||
|
|
||||||
sts_rss_result = (average_result > 3)? 1: 0;
|
sts_rss_result = (average_result > 3)? 1: 0;
|
||||||
average_distance = (1000.0f*average_distance)/average_result; // in meters
|
average_distance = (1000.0f*average_distance)/average_result; // in meters
|
||||||
|
@ -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 (average_score !=0) //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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue