Hello,
Are you attempting to limit the motor power through the throttle, or control the motor power entirely?
For the first one, since we get a value from -1 to 1, we need to scale it, by adding 1 and dividing by 2. Then Just multiply this value by the value you were sending into the motor controller.
For Controlling the motor entirely off the throttle, just feed in the value for 2-way control, or scale it as specified above for more precise 1-way control.
Hoped That Helped
Sasha