raw

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package raw manages the raw launch protocol.

The raw format are timed position,speed commands using the same values as the Launch's BLE protocol.

The file format is a JSON encoded array of timed actions:

[
  {
    "at": <time>,
    "pos": <position>,
    "spd": <speed>
  },
  ...
]

time    : integer, time in ms when the action is executed
position: integer, position to move to 0-99 (bottom ... top)
speed   : integer, speed to move at 20-99 (slow ... fast)

The raw format uses the same values as the BLE protocol, giving the script the biggest amount of control but with great power comes great responsibility ;-)

Tips

Canceling previous actions before they finish will often result in a more smooth transition between the moves.

At speed 20% a full stroke takes ~900ms

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(r io.Reader) (protocol.Player, error)

Load returns a player with the waw script loaded.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL