1.4.1 • Published 4 years ago

srv-client v1.4.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

srv-client Build Status

node module to facilitate connection to and control of an SRV-1 Surveyor robot via tcp

NPM

Usage

configure and connect

const SrvClient = require('srv-client');

let client = new SrvClient({
  host: '192.168.1.123',
  port: 1138
});

client.connect(function(err){
  // handle error and/or do stuff
});

move in specified direction (supported: forward, backward, left, right)

client.go('forward', function(err){
  // handle error and/or do stuff
});

stop moving

client.stop(function(err){
  // handle error and/or do stuff
});

turn laser on or off

client.setLaser('on', function(err){
  // handle error and/or do stuff
});

Additional Info

full list of motor commands are specified here: http://www.surveyor.com/SRV_protocol.html

1.4.1

4 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.0.3

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.1

5 years ago

0.1.0

11 years ago