diff --git a/STS/TOF/App/app_tof.c b/STS/TOF/App/app_tof.c index 7ea6581..95f94ef 100644 --- a/STS/TOF/App/app_tof.c +++ b/STS/TOF/App/app_tof.c @@ -41,7 +41,7 @@ volatile uint32_t fhmos_fall_counter=0; volatile uint32_t sts_low_threshold=1500, sts_high_threshold=2800, sts_occupancy_threshold=2300; extern volatile uint8_t sts_head_level_low; volatile sts_fhmos_sensor_config_t fhmos_cfg={70,4,8,8,20,80,50,0}; -volatile sts_fhmos_sensor_ambient_height_t fhmos_bg={0x0}, fhmos_gesture={0x0}; +volatile sts_fhmos_sensor_ambient_height_t fhmos_bg={0x0}, fhmos_gesture={0x0}, fhmos_net={0x0}; volatile sts_fhmos_sensor_data_t fhmos_data={0}; extern volatile uint8_t sts_fhmos_result; volatile uint8_t sts_mask_bitmap[8]={0x0}, fhmos_gesture_bitmap[8]={0x0}; @@ -538,6 +538,7 @@ static void print_result(RANGING_SENSOR_Result_t *Result) //printf("\r\nj=%d, diff=%d ", j, motion_diff); motion_power += motion_diff; prev_distance[j] = (uint16_t)Result->ZoneResult[j].Distance[0]; + fhmos_net.h2cm[j] = } motion_power /=64; if (motion_power > fhmos_cfg.th_motion_power_level)