@prototwin/forwards-backwards-controller

1.0.0PublicPublished 26 days ago

A motor controller with IO for controlling the direction of a motor.

Latest Version: 1.0.0

Size: 1 KB

Publisher: ProtoTwin (contact@prototwin.com)

README.md

Forwards Backwards Motor Controller

The ForwardsBackwardsController component controls a motor, such that the sign of the motor's speed is toggled between positive and negative. The motor's speed is set to zero if forwards and backwards are both true or both false.

Properties

  • Forwards: Whether the motor should have a positive velocity.
  • Backwards: Whether the conveyor should have a negative velocity.

IO

The component has the following IO:

  • Forwards: (Input) Whether the motor should have a positive velocity.
  • Backwards: (Input) Whether the conveyor should have a negative velocity.

Changelog

1.0.0

Initial release.