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.

[参考译文] MSP430FR50431:用于绝对 ToF 计算的抛物线内插

Guru**** 2380860 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/985230/msp430fr50431-parabolic-interpolation-for-absolute-tof-calculations

器件型号:MSP430FR50431

您好!

我正在尝试分析捕获的 ADC 数据、以便最好地确定 Matlab 中的波瓣与峰值之比。  如何按照 SLAA889的第2.2.1.1节的说明在 Matlab 中实现抛物线插值?  我从使用"热线"方法的 interp1 ()开始、但我怀疑这与固件的实际功能有很大不同。

谢谢!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Boone、

    我想您可以在 Matlab 论坛上参考一些有关如何执行此操作的主题:

    https://www.mathworks.com/matlabcentral/answers/488351-how-to-make-a-parabolic-interpolation

    BR、
    Leo

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Leonardo、

    感谢您的建议。  实际上、我使用的是 Octave、而不是 MATLAB、它基本上是相同的、但不支持 cftool。  我能够将多项式配合二阶多项式使用。  我认为这与抛物线插值是一样的、但如果我错了、请告诉我。

    下面是我如何找到插值峰值的 X 和 Y 坐标的片段:

    PolyCoef = polyfit ([-1 0 1]、[rawADCData (sample_index-1) rawADCData (sample_index) postADCData (sample_index+1)]、2);
    r =根(聚 DER (聚线性));
    lobey = PolyCoef(1)* r^2 + PolyCoef(2)* r + PolyCoef(3);
    lofeX = sample_index+r;