adaptation for vofa+(FireWater)
This commit is contained in:
parent
c2950b3055
commit
c363c5fb85
@ -389,7 +389,8 @@ static uint8_t handle_data_ready(ch_group_t *grp_ptr) {
|
|||||||
|
|
||||||
chirp_data[dev_num].amplitude = 0; /* no updated amplitude */
|
chirp_data[dev_num].amplitude = 0; /* no updated amplitude */
|
||||||
|
|
||||||
printf("Port %d: no target found ", dev_num);
|
// printf("Port %d: no target found ", dev_num);
|
||||||
|
printf("UltraSnoic0:%0.1f, %u\n", 0.0, 0);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/* Target object was successfully detected (range available) */
|
/* Target object was successfully detected (range available) */
|
||||||
@ -397,9 +398,10 @@ static uint8_t handle_data_ready(ch_group_t *grp_ptr) {
|
|||||||
* was successfully measured. */
|
* was successfully measured. */
|
||||||
chirp_data[dev_num].amplitude = ch_get_amplitude(dev_ptr);
|
chirp_data[dev_num].amplitude = ch_get_amplitude(dev_ptr);
|
||||||
|
|
||||||
printf("Port %d: Range: %0.1f mm Amp: %u ", dev_num,
|
// printf("Port %d: Range: %0.1f mm Amp: %u ", dev_num,
|
||||||
(float) chirp_data[dev_num].range/32.0f,
|
// (float) chirp_data[dev_num].range/32.0f,
|
||||||
chirp_data[dev_num].amplitude);
|
// chirp_data[dev_num].amplitude);
|
||||||
|
printf("UltraSnoic0:%0.1f, %u\n", (float) chirp_data[dev_num].range/32.0f, chirp_data[dev_num].amplitude);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Store number of active samples in this measurement */
|
/* Store number of active samples in this measurement */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user