修改探头间声音传播距离为115.12,tof减小2us
This commit is contained in:
parent
8f8d6066a1
commit
4387a506e8
|
@ -38,8 +38,13 @@
|
||||||
|
|
||||||
#define DRIVE_NUM 2
|
#define DRIVE_NUM 2
|
||||||
|
|
||||||
|
|
||||||
// 传播距离 风速计算公式中的L参数
|
// 传播距离 风速计算公式中的L参数
|
||||||
#define DISTANCE ((float32_t)120000.0)
|
//探头表面距离115.12mm(57.56mm*2),换能器探头到探头表面距离暂定2mm(1mm*2)
|
||||||
|
//#define DISTANCE ((float32_t)115120.0 + (float32_t)2000.0)
|
||||||
|
#define DISTANCE ((float32_t)115120.0)
|
||||||
|
// 传播距离 风速计算公式中的L参数
|
||||||
|
//#define DISTANCE ((float32_t)120000.0)
|
||||||
// 富奥通结构 L = 118946
|
// 富奥通结构 L = 118946
|
||||||
// #define DISTANCE 118946
|
// #define DISTANCE 118946
|
||||||
|
|
||||||
|
|
|
@ -434,8 +434,8 @@ void wind_task(void const * argument)
|
||||||
tof_error_log_NS = 0;
|
tof_error_log_NS = 0;
|
||||||
g_error_log.tof_error_NS = 0;
|
g_error_log.tof_error_NS = 0;
|
||||||
// 计算成us
|
// 计算成us
|
||||||
tofx = ((tofx-FIR_PHASE_DELAY)/ADC_SAMP_RATE_MHz)+REV_MUTE_DELAY_US-1.0f/DRIVE_FREQ_MHz+0.0001f;
|
tofx = ((tofx-FIR_PHASE_DELAY)/ADC_SAMP_RATE_MHz)+REV_MUTE_DELAY_US-1.0f/DRIVE_FREQ_MHz+0.0001f - 2.0;
|
||||||
tofy = ((tofy-FIR_PHASE_DELAY)/ADC_SAMP_RATE_MHz)+REV_MUTE_DELAY_US-1.0f/DRIVE_FREQ_MHz+0.0001f;
|
tofy = ((tofy-FIR_PHASE_DELAY)/ADC_SAMP_RATE_MHz)+REV_MUTE_DELAY_US-1.0f/DRIVE_FREQ_MHz+0.0001f - 2.0;
|
||||||
// 通过各通道渡越时间求时间差
|
// 通过各通道渡越时间求时间差
|
||||||
dtof = tofx-tofy;
|
dtof = tofx-tofy;
|
||||||
|
|
||||||
|
@ -492,8 +492,8 @@ void wind_task(void const * argument)
|
||||||
tof_error_log_WE = 0;
|
tof_error_log_WE = 0;
|
||||||
g_error_log.tof_error_WE = 0;
|
g_error_log.tof_error_WE = 0;
|
||||||
// 计算成us
|
// 计算成us
|
||||||
tofx = ((tofx-FIR_PHASE_DELAY)/ADC_SAMP_RATE_MHz)+REV_MUTE_DELAY_US-1.0f/DRIVE_FREQ_MHz+0.000001f;
|
tofx = ((tofx-FIR_PHASE_DELAY)/ADC_SAMP_RATE_MHz)+REV_MUTE_DELAY_US-1.0f/DRIVE_FREQ_MHz+0.000001f - 2.0;
|
||||||
tofy = ((tofy-FIR_PHASE_DELAY)/ADC_SAMP_RATE_MHz)+REV_MUTE_DELAY_US-1.0f/DRIVE_FREQ_MHz+0.000001f;
|
tofy = ((tofy-FIR_PHASE_DELAY)/ADC_SAMP_RATE_MHz)+REV_MUTE_DELAY_US-1.0f/DRIVE_FREQ_MHz+0.000001f - 2.0;
|
||||||
// 通过各通道渡越时间求时间差
|
// 通过各通道渡越时间求时间差
|
||||||
dtof = tofx-tofy;
|
dtof = tofx-tofy;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue