AC Induction Motor Slip and Torque control Vs V/f control
From the link &quot; this github code&quot;

STM32 variable frequency drive controller
This project aims to be an open source torque controller for AC induction motors.
Overview
The software generates a 3-phase output using PWM. The frequency and voltage are adjusted to create a torque proportional to the &quot;throttle&quot; input.

As stated above, the code is for controlling the torque of the motor not the speed. The speed is controlled manually by the person operating the throttle.