The motor system has two main components, the motor itself and the motor controller.
For the throttle, the throttle voltage would change depending on the position of the throttle. We used an ADC chip using SPI communication between the Pi to get the current value. Then depending on the position of the throttle, it will be a variable in the motor PWM output.