-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
calibrate failure #12
Comments
This error:
Occurs when toString() is called on a number with an invalid radix. I've seen this before when two operations are trying to control process.stdin. What version of Johnny-Five is currently in node_modules? |
@ubatra13 in node_modules/johnny-five/lib/board.js, find this line: |
@rwaldron now I am getting different error while taping on control screen node bot.js /Users/ub/arduino/workspace/tapsterbot/src/bot.js:158 |
@rwaldron also, when calibrating I get this node bot.js
|
@rwaldron just to clarify because I guess I posted two issues here, Issue 1. when calibrating for first time it went fine prints "13811111**** Repl Initialized" and then when trying out http://localhost:8011/control, I get the error I mentioned above. /Users/ub/arduino/workspace/tapsterbot/src/bot.js:158 Issue 2. When I try calibrating second time, I got error as 1381111140745 Repl Initialized /Users/ub/arduino/workspace/tapsterbot/src/bot.js:79 but Issue 2, I am not able to reproduce it now; so we can ignore it for now in case you know what it is? I think for me, if issue 1 is resolved I am good to proceed. |
@rwaldron please ignore, finally, it worked, I was doing calibrate step wrong, very thanks for your help. |
Hi Jason,
I followed your steps and after running node bot.js and doing calibrate gives following error
1381103959581 Board Connecting...
1381103959655 Serial Found possible serial port /dev/cu.usbmodemfd121
1381103959656 Board -> Serialport connected /dev/cu.usbmodemfd121
1381103962951 Board <- Serialport ready /dev/cu.usbmodemfd121
1381103962951 Repl Initialized
string_decoder.js:109
charStr += buffer.toString(this.encoding, 0, end);
^
RangeError: toString() radix argument must be between 2 and 36
at Number.toString (native)
at StringDecoder.write (string_decoder.js:109:21)
at ReadStream.onData (readline.js:839:39)
at ReadStream.EventEmitter.emit (events.js:95:17)
at Board. (/Users/ub/arduino/workspace/tapsterbot/node_modules/johnny-five/lib/board.js:297:27)
at Board. (/Users/ub/arduino/workspace/tapsterbot/node_modules/johnny-five/lib/board.js:124:18)
at SerialPort. (/Users/ub/arduino/workspace/tapsterbot/node_modules/johnny-five/node_modules/firmata/lib/firmata.js:339:13)
at SerialPort.EventEmitter.emit (events.js:95:17)
at Object.SerialPort.options.errorCallback (/Users/ub/arduino/workspace/tapsterbot/node_modules/johnny-five/node_modules/serialport/serialport.js:152:10)
at afterRead (/Users/ub/arduino/workspace/tapsterbot/node_modules/johnny-five/node_modules/serialport/serialport.js:273:24)
When I try avoid calibration, and try tapping on control webpage I get following error
1381104324488 Board Connecting...
1381104324561 Serial Found possible serial port /dev/cu.usbmodemfd121
1381104324562 Board -> Serialport connected /dev/cu.usbmodemfd121
DEVICE: { foo: 'bar', height: 898, width: 1335 }
1381104327855 Board <- Serialport ready /dev/cu.usbmodemfd121
1381104327855 Repl Initialized
/Users/ub/arduino/workspace/tapsterbot/src/bot.js:158
b = translationMatrix.elements[1][0],
^
TypeError: Cannot read property '0' of undefined
at deviceGo (/Users/ub/arduino/workspace/tapsterbot/src/bot.js:158:38)
at Socket. (/Users/ub/arduino/workspace/tapsterbot/src/bot.js:133:5)
at Socket.EventEmitter.emit as $emit
at SocketNamespace.handlePacket (/Users/ub/arduino/workspace/tapsterbot/node_modules/socket.io/lib/namespace.js:335:22)
at Manager.onClientMessage (/Users/ub/arduino/workspace/tapsterbot/node_modules/socket.io/lib/manager.js:487:38)
at WebSocket.Transport.onMessage (/Users/ub/arduino/workspace/tapsterbot/node_modules/socket.io/lib/transport.js:387:20)
at Parser. (/Users/ub/arduino/workspace/tapsterbot/node_modules/socket.io/lib/transports/websocket/hybi-16.js:39:10)
at Parser.EventEmitter.emit (events.js:95:17)
at finish (/Users/ub/arduino/workspace/tapsterbot/node_modules/socket.io/lib/transports/websocket/hybi-16.js:288:16)
at Parser.expectHandler (/Users/ub/arduino/workspace/tapsterbot/node_modu ...
Your timely response is much appreciated.
Umesh
The text was updated successfully, but these errors were encountered: