wip for net fhmos_net h2cm

This commit is contained in:
Yunhorn 2024-12-10 01:07:39 +08:00
parent dd4d2693c3
commit f7d01c83fd
1 changed files with 2 additions and 1 deletions

View File

@ -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)