Skip to content
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

Closed
wants to merge 0 commits into from

Conversation

vaishnavachath
Copy link
Contributor

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

@vaishnavachath
Copy link
Contributor Author

#4
#3

@vaishnavachath vaishnavachath force-pushed the master branch 3 times, most recently from 4216a54 to a672afa Compare July 18, 2018 16:18
vaishnavachath added a commit to vaishnavachath/bonescript that referenced this pull request Jul 20, 2018
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
Copy link
Owner

@jadonk jadonk left a 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": {
Copy link
Owner

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": [
Copy link
Owner

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.

@@ -0,0 +1,504 @@
#include <nan.h>
Copy link
Owner

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.

@vaishnavachath
Copy link
Contributor Author

submiited #6 after making the recommended changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants