Open
Description
Expected Behavior
There's a distinction between "motor power" (i.e. torque) and "motor speed" (i.e. rotations per second) that should be clear if those parameters are used separately in the code.
Actual Behavior
The BOOST extension code currently uses wording internally that creates some confusion between power and speed:
- The block is labeled "set motor speed"
- The opcode called by that block is
setMotorPower
. This opcode sets the speed. - The motor object has a property
motor.power
. This property stores the speed. - The functions that send the commands to the BOOST hub set the speed and power parameters separately. There's a line here that uses
this.power
to set the speed. The line below sets the actual power level for the motor, calculating it using the speed (i.e. usingthis.power
).