0.2.3 • Published 8 years ago

robot-loop v0.2.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

robot-loop

Set up cycle shell loop for ev3-client

Installation

npm install robot-loop

Usage

var {loop, move, motor, out, sleep, read} = require('robot-loop')
loop(main, '192.168.1.100')

var steer = move('b', 'c')

function * main () {
  yield steer.rotations(1, 60, 0)
}

API

loop(main, address)

Connect the main function to the ev3-client run middleware and use it to create a cycle shell loop.

Parameters

main

  • Type: function
  • generator function yielding ev3-client functions

address

  • Type: string
  • string containing the ip address of the robot

out(msg)

Create an out action to add a message to the current cycle-shell process.

Parameters

out

  • Type: string
  • The message to display

ev3-client API

This package exposes the API from ev3-client

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.41

9 years ago

0.1.40

9 years ago

0.1.39

9 years ago

0.1.38

9 years ago

0.1.37

9 years ago

0.1.36

9 years ago

0.1.35

9 years ago

0.1.34

9 years ago

0.1.33

9 years ago

0.1.31

9 years ago

0.1.30

9 years ago

0.1.29

9 years ago

0.1.28

9 years ago

0.1.27

9 years ago

0.1.26

9 years ago

0.1.25

9 years ago

0.1.24

9 years ago

0.1.23

9 years ago

0.1.22

9 years ago

0.1.21

9 years ago

0.1.20

9 years ago

0.1.19

9 years ago

0.1.18

9 years ago

0.1.17

10 years ago

0.1.16

10 years ago

0.1.15

10 years ago

0.1.14

10 years ago

0.1.13

10 years ago

0.1.12

10 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago