Support for spindle load reporting was added to the realtime report output in the last upstream commit.
This PR adds the necessary support code for the v1 Huanyang VFD, and a new function to retrieve the active VFD function pointers (for access from another plugin).
Load is reported as a percentage of the actual spindle amps vs maximum configured spindle amps.
// Example of access from another plugin
#if VFD_ENABLE
const vfd_ptrs_t *vfd_spindle = vfd_get_active();
if (vfd_spindle && vfd_spindle->get_load) {
float load = vfd_spindle->get_load();
}
#endif
Support for spindle load reporting was added to the realtime report output in the last upstream commit.
This PR adds the necessary support code for the v1 Huanyang VFD, and a new function to retrieve the active VFD function pointers (for access from another plugin).
Load is reported as a percentage of the actual spindle amps vs maximum configured spindle amps.