Hi,
I am using the SFRA library and had a question about the examples and documentation handled the collection of data.
//! \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);
In SFRA Collect, we provide the output control value at time (t1) and the measured feedback. Should the feedback be from time t0 or from time t1?

Figure 10 makes me think that the SFRA_collect should be called with the output and measured effect of that output. I.e SFRA_collect(&LastDutyPu, Vout1_Read);
However, the code snippet calls SFRA_collect with an output and the effect of the last output. I.e. SFRA_collect(&DutyPu, Vout1_Read);
If the ISR frequency is running quickly, i'm assuming an off by one index error isn't a big deal but I was wondering what the right way to do it is.
Thanks,
-Colin