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

Control Hub Module #68

Open
wants to merge 83 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
c6cd810
merge in main
LandryNorris Aug 3, 2023
17b4a2b
Try to connect to control hub
LandryNorris May 25, 2023
019dddf
Try to connect to control hub
LandryNorris May 25, 2023
57d3506
merge in main
LandryNorris Aug 3, 2023
8e68929
Check version of RC app
LandryNorris May 25, 2023
fa7fbea
Bump required RC version
LandryNorris May 25, 2023
035def2
Change how semver requirement is declated
LandryNorris May 25, 2023
633c40c
Remove error output if no WiFi hub connected
LandryNorris May 25, 2023
e68ca9d
Detect USB control hubs
LandryNorris May 26, 2023
68ab5e0
Fix connection to USB expansion hubs
LandryNorris May 26, 2023
167d412
Add explicit dependency on control-hub
LandryNorris May 30, 2023
c28c954
Restructure Control Hub module to export interface and implement with…
LandryNorris May 30, 2023
c975140
Show serial number for parent expansion hub
LandryNorris May 30, 2023
1a7f6e1
Remove ParentControlHub, since control hubs will always be parents
LandryNorris May 30, 2023
d851694
Fix wording in package description
LandryNorris May 30, 2023
d17e60b
Create core module
LandryNorris May 30, 2023
89e331d
Move adbkit usage out of control hub module
LandryNorris May 30, 2023
c957a26
Remove override of target
LandryNorris May 30, 2023
1ba650d
Add note on dependencies in README
LandryNorris May 30, 2023
8952fb5
loosen version requirement for get-port
LandryNorris May 30, 2023
00cf60e
Send address in commands
LandryNorris Jun 5, 2023
5df21bf
Send commands when control hub methods called
LandryNorris Jun 5, 2023
31fef3c
Use control hubs for commands and fix incorrect key
LandryNorris Jun 8, 2023
e028ce9
apply changes to be compatible with new manual control changes
LandryNorris Jun 8, 2023
8971f0b
add timeout to control hub websocket commands
LandryNorris Jun 8, 2023
bafff3e
Add todo for closing (and resetting op mode) when websocket is closed
LandryNorris Jun 8, 2023
d2bb88a
Track whether the control hub is connected
LandryNorris Jun 8, 2023
4f35862
convert some methods to private
LandryNorris Jun 8, 2023
bbaedb1
remove logs
LandryNorris Jun 8, 2023
9a7d27f
update servo command
LandryNorris Jun 8, 2023
749333d
make compatible with latest control hub changes
LandryNorris Jun 9, 2023
734f65a
use new id system for control hubs
LandryNorris Jun 9, 2023
b28fef9
update to latest changes in control hub
LandryNorris Jun 9, 2023
d38a578
Properly handle children hierarchy on Control Hub
LandryNorris Jun 15, 2023
e0ef0e5
connect to other expansion hubs
LandryNorris Jun 15, 2023
3dcae65
Add check for if a RevHub is a Control Hub
LandryNorris Jun 23, 2023
66ce41a
Clarify naming
LandryNorris Jun 23, 2023
b749566
formatting in HubStringify and restore deleted method
LandryNorris Jun 28, 2023
8950c5d
Don't add embedded as a child of control hub
LandryNorris Jun 29, 2023
73eb189
properly close control hub
LandryNorris Jun 29, 2023
4f3080f
fixes for adding children
LandryNorris Jun 29, 2023
8916086
update commands to match latest spec
LandryNorris Jun 29, 2023
8b696cb
Rename getExpansionHubOrThrow() to getRevHubOrThrow()
NoahAndrews Jul 25, 2023
7a9e278
Remove log message
NoahAndrews Jul 25, 2023
fcddd5a
Delete Control Hub discovery.ts file
NoahAndrews Jul 25, 2023
314f3c9
Remove default values of private open() method, pass port as a number
NoahAndrews Jul 25, 2023
3284f68
Add @types/ws dependency to Control Hub package
NoahAndrews Jul 25, 2023
0f2451c
fix some circular dependencies
LandryNorris Aug 3, 2023
6176c3b
fix method names and remove call to removed method
LandryNorris Aug 3, 2023
a72d6fc
Add control flag
LandryNorris Aug 3, 2023
d516179
depend on specific package version
LandryNorris Aug 3, 2023
3f1f9b7
update readme
LandryNorris Aug 3, 2023
964d779
remove peer dependency on get-port
LandryNorris Aug 3, 2023
fa8a41c
use sdkVersion field
LandryNorris Aug 3, 2023
82bba6d
fix motor set pid method
LandryNorris Aug 3, 2023
d201c63
Add support for pidf
LandryNorris Aug 3, 2023
4ddbba5
fix some commands still using expansion hubs
LandryNorris Aug 3, 2023
810532f
import formatting
LandryNorris Aug 4, 2023
e0e7516
Clarify control flag
LandryNorris Aug 4, 2023
0c7ecd1
get closed loop control algorithm from control hub
LandryNorris Aug 4, 2023
9c63bab
organize methods
LandryNorris Aug 7, 2023
1616547
merge in main
LandryNorris Aug 7, 2023
3f58abb
fix incorrect command and parameter names
LandryNorris Aug 7, 2023
3c930b3
fix incorrect command and parameter names
LandryNorris Aug 7, 2023
b69da04
fix incorrect parameter names for motor commands
LandryNorris Aug 9, 2023
cfe6203
update parameter names for servo command
LandryNorris Aug 10, 2023
75b0588
fix various incorrect parameters
LandryNorris Aug 10, 2023
de511a4
Add status command
LandryNorris Aug 11, 2023
70ed325
fix ability to identify a control hub's child
LandryNorris Aug 11, 2023
20dcd55
fix incorrect command name for setting hub address
LandryNorris Aug 11, 2023
b8a9ec1
pass in module address
LandryNorris Aug 11, 2023
6d63599
move digital methods and remove incorrectly named versions
LandryNorris Aug 11, 2023
b2dd447
split code for opening control hubs with children
LandryNorris Aug 11, 2023
5aace1a
formatting changes
LandryNorris Aug 11, 2023
41693e1
re-order methods
LandryNorris Aug 11, 2023
033ac27
add await where missing
LandryNorris Aug 15, 2023
266209a
merge in main
LandryNorris Aug 15, 2023
420a8de
update I2C methods
LandryNorris Aug 16, 2023
6c09ca6
Add method overloads to ControlHub
LandryNorris Aug 16, 2023
a38111d
various fixes
LandryNorris Aug 16, 2023
230c40d
implement I2C commands
LandryNorris Aug 16, 2023
7b5f66f
declare node addon api in project root
LandryNorris Aug 16, 2023
c2d5718
add missing command implementations
LandryNorris Aug 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

This project enables Node.js applications to control devices that speak the REV Hub Serial Protocol (such as the REV Robotics Expansion Hub).

### WiFi-control on Node.js

If you are using node.js and wish to communicate
with a Control Hub via WiFi, you will need to add
a dependency on [ws](https://www.npmjs.com/package/ws).

## USB-control of Control Hub

If you wish to communicate with a Control Hub over
USB, you will need to set up port forwarding. This
requires a dependency on [adbkit](https://www.npmjs.com/package/adbkit).
See [adbkit setup](packages/sample/src/adb-setup.ts)
for an example of setting up port forwarding.

## Package structure

This project uses [lerna](https://lerna.js.org) for
Expand Down
Loading
Loading