0.2.3 • Published 7 years ago

robot-loop v0.2.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 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

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.41

7 years ago

0.1.40

7 years ago

0.1.39

7 years ago

0.1.38

7 years ago

0.1.37

8 years ago

0.1.36

8 years ago

0.1.35

8 years ago

0.1.34

8 years ago

0.1.33

8 years ago

0.1.31

8 years ago

0.1.30

8 years ago

0.1.29

8 years ago

0.1.28

8 years ago

0.1.27

8 years ago

0.1.26

8 years ago

0.1.25

8 years ago

0.1.24

8 years ago

0.1.23

8 years ago

0.1.22

8 years ago

0.1.21

8 years ago

0.1.20

8 years ago

0.1.19

8 years ago

0.1.18

8 years ago

0.1.17

8 years ago

0.1.16

8 years ago

0.1.15

8 years ago

0.1.14

8 years ago

0.1.13

8 years ago

0.1.12

8 years ago

0.1.11

8 years ago

0.1.10

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago