Looks like the refactoring has impacted speed control for original Huanyang VFDs..
Here it's setting spindle_hal->rpm_max to the configured RPM @ 50Hz, which is then enforced in spindle_set_rpm()
|
case VFD_GetMaxRPM50: |
|
if(spindle_hal) { |
|
spindle_hal->cap.rpm_range_locked = On; |
|
spindle_hal->rpm_max = rpm_max50 = (float)((msg->adu[4] << 8) | msg->adu[5]); |
|
} |
|
break; |
Looks like the refactoring has impacted speed control for original Huanyang VFDs..
Here it's setting
spindle_hal->rpm_maxto the configured RPM @ 50Hz, which is then enforced inspindle_set_rpm()Plugins_spindle/vfd/huanyang.c
Lines 214 to 219 in 881ed9d