This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR5043: 测试结果有些不正常,流速单位确认

Part Number: MSP430FR5043

你好,我是用msp430fr5043做了一个气体流速的项目,目前直接使用的uss_lib中的demo做的测试,有两个疑问

1、始终无法确认totalTOF_UPS、totalTOF_DNS、deltaTOF、volumeFlowRate这个的单位是多少了。我们最终目的是需要测试速度,确认是多少m/s(米每秒)

code = USS_startLowPowerUltrasonicCapture(&gUssSWConfig);
checkCode(code, USS_message_code_no_error);

code = USS_runAlgorithms(&gUssSWConfig,&algResults);
checkCode(code, USS_message_code_valid_results);

#if (APPLICATION_ENABLE_CHANNEL_SWAP == true)
if(appSwapInterval == 0)
{
code = USS_swapCaptureChannels(&gUssSWConfig);
code = USS_swapAlgorithmsCaptureBuffers(&gUssSWConfig);

appSwapInterval = APPLICATION_CHANNEL_SWAP_INTERVAL;
}else{
appSwapInterval--;
}
#endif

#if APPLICATION_ENABLE_UART_DEBUG
/*
uartTxUSSResult(APPLICATION_UART_ABSTOF_UPS_DELIM,&algResults.totalTOF_UPS);
uartTxUSSResult(APPLICATION_UART_ABSTOF_DNS_DELIM,&algResults.totalTOF_DNS);
uartTxUSSResult(APPLICATION_UART_DTOF_DELIM,&algResults.deltaTOF);
uartTxUSSResult(APPLICATION_UART_VFR_DELIM,&algResults.volumeFlowRate);
*/

printf("\r\n%s:%f\r\n","UPS ",

code = USS_startLowPowerUltrasonicCapture(&gUssSWConfig);
checkCode(code, USS_message_code_no_error);

code = USS_runAlgorithms(&gUssSWConfig,&algResults);
checkCode(code, USS_message_code_valid_results);

#if (APPLICATION_ENABLE_CHANNEL_SWAP == true)
if(appSwapInterval == 0)
{
code = USS_swapCaptureChannels(&gUssSWConfig);
code = USS_swapAlgorithmsCaptureBuffers(&gUssSWConfig);

appSwapInterval = APPLICATION_CHANNEL_SWAP_INTERVAL;
}else{
appSwapInterval--;
}
#endif

#if APPLICATION_ENABLE_UART_DEBUG
/*
uartTxUSSResult(APPLICATION_UART_ABSTOF_UPS_DELIM,&algResults.totalTOF_UPS);
uartTxUSSResult(APPLICATION_UART_ABSTOF_DNS_DELIM,&algResults.totalTOF_DNS);
uartTxUSSResult(APPLICATION_UART_DTOF_DELIM,&algResults.deltaTOF);
uartTxUSSResult(APPLICATION_UART_VFR_DELIM,&algResults.volumeFlowRate);
*/

printf("\r\n%s:%f\r\n","UPS ",algResults.totalTOF_UPS);
printf("%s:%f\r\n", "DNS ",algResults.totalTOF_DNS);
printf("%s:%f\r\n", "deltaTOF",algResults.deltaTOF);
printf("%s:%f\r\n", "volume ",algResults.volumeFlowRate);
#endif

);
printf("%s:%f\r\n", "DNS ",algResults.totalTOF_DNS);
printf("%s:%f\r\n", "deltaTOF",algResults.deltaTOF);
printf("%s:%f\r\n", "volume ",algResults.volumeFlowRate);
#endif

2、正常放置,没有刻意给什么风,我的测试其结果如下:,不知道这个正常吗?目前都是使用的demo的默认参数,不知道怎么调整优化参数是测量更准确。


UPS :0.000348
DNS :0.000347
deltaTOF:0.000000
volume :0.002792

UPS :0.000348
DNS :0.000348
deltaTOF:0.000000
volume :0.005585

UPS :0.000347
DNS :0.000348
deltaTOF:0.000000
volume :0.008377

UPS :0.000348
DNS :0.000348
deltaTOF:-0.000000
volume :-0.013031

UPS :0.000347
DNS :0.000347
deltaTOF:-0.000000
volume :-0.005585

UPS :0.000348
DNS :0.000347
deltaTOF:-0.000000
volume :-0.004654

UPS :0.000347
DNS :0.000348
deltaTOF:0.000000
volume :0.012100。