-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix compatibility for newer versions & add servo support #5
Conversation
4216a54
to
a672afa
Compare
changes made to node-roboticscape: jadonk/node-roboticscape#5 tested on: BeagleBone Blue BeagleBoard.org Debian Image 2018-03-05 Linux beaglebone 4.9.105-ti-r113 rc_version : 0.4.4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Until I can see what changed in the source, I don't want to approve the merge yet. Go ahead and remove support for the old API.
binding.gyp
Outdated
@@ -2,7 +2,21 @@ | |||
"targets": [ | |||
{ | |||
"target_name": "roboticscape", | |||
"sources": [ "rc-node-bindings.cc" ], | |||
"variables": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation looks different.
binding.gyp
Outdated
"variables": { | ||
'RC_version': '<!(rc_version)' | ||
}, | ||
"conditions": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use 0.4.4 and obsolete use for the older library. In fact, James has recently made a 1.0.0 release: https://github.com/StrawsonDesign/librobotcontrol/releases/tag/V1.0.0
It should be 0.4.4 compatible, I hope.
rc-node-bindings041.cc
Outdated
@@ -0,0 +1,504 @@ | |||
#include <nan.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't create a new file. We can obsolete support for the old API. I'd like to see what changed in this file.
submiited #6 after making the recommended changes |
replaced some deprecated functions
modified binding.gyp to choose sources based on rc_version
added servo support , used @chnewso 's fork for reference
tested on:
BeagleBone Blue BeagleBoard.org Debian Image 2018-03-05
Linux beaglebone 4.9.105-ti-r113
rc_version : 0.4.4