Skip to content

Releases: beardicus/line-us

v3.1.0

08 Dec 10:40
Compare
Choose a tag to compare

Added

  • ESM support. You should be able to `import {LineUs} from '@beardicus/line-us' now, but honestly I find all of this very confusing.

Fixed

  • The .disconnect() method should more reliably emit a disconnected state when the websocket closes.

v2.1.0

28 Jun 02:18
Compare
Choose a tag to compare

Added

  • A concurrency parameter has been added to the constructor, with a default value of 3. This parameter controls how many commands can be "in flight" and buffered by the Line-us machine. Setting this to higher values can smooth out operation over unreliable or high-latency connections. The default value of 3 seems good for most local Wifi situations.

Fixed

  • .coordinates will now be set to the home coordinates ({x: 350, y: 0, z: 1000}) after a connection is established, as the Line-us machine does a homing sequence as part of the connection process. Previously we would return undefined coordinates until after the first move.

v2.0.0

29 Jan 16:13
Compare
Choose a tag to compare

Changed

  • .pause() now lifts the arm by default, and returns it to the previous z height upon .resume(). It returns a promise that resolves when the machine is actually paused.

Fixed

  • npm run test-browser now finishes and exits properly.
  • The README erroneously stated that coordinates were emitted from the machine as soon as a command is accepted at the beginning of a movement. The response actually comes when the movement is complete. Updated README to reflect that coordinate events are emitting the coords of the last completed movement.