Skip to content

BOOST extension: code should distinguish between speed and power #2158

Open
@ericrosenbaum

Description

@ericrosenbaum

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. using this.power).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions