您好!
我正在使用 SFRA 库、对 处理数据收集的示例和文档有疑问。
//! \brief Collects the response of the loop because of small signal disturbance //! injected //! \param *control_output pointer to the variable where control output is saved //! note though the parameter is passed by reference //! it is unchanged by the module //! \param *feedback pointer to the variable where control output is saved //! note though the parameter is passed by reference //! it is unchanged by the module //! \return None //! extern void SFRA_F32_collect(float *control_output, float *feedback);
在 SFRA Collect 中、我们会在时间(T1)提供输出控制值和测量的反馈。 反馈应该来自时间 t0还是来自时间 t1?

图10 让我认为 、SFRA_COLLECT 应 使用 该输出的输出和测量效果进行调用。 即 SFRA_Collect (&LastDutyPu、Vout1_Read);
但是、代码片段会调用具有输出和最后一个输出效果的 SFRA_Collect。 即 SFRA_Collect (&DutyPu、Vout1_Read);
如果 ISR 频率运行迅速、我假设"off by one index"错误并不重要、但我想知道正确的方法是什么。
谢谢、
-科林