Skip to content

Commit

Permalink
Start NT DS client in client mode in vision programs (#187)
Browse files Browse the repository at this point in the history
This will allow the IP to be automatically set by another server running
on the Pi if it implements the DS port 1742 protocol.

The Romi web service has been updated to support this in the Romi image.
  • Loading branch information
PeterJohnson authored Jan 11, 2021
1 parent abcd6f3 commit 3a9db7c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions deps/examples/cpp-multiCameraServer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ int main(int argc, char* argv[]) {
} else {
wpi::outs() << "Setting up NetworkTables client for team " << team << '\n';
ntinst.StartClientTeam(team);
ntinst.StartDSClient();
}

// start cameras
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ public static void main(String... args) {
} else {
System.out.println("Setting up NetworkTables client for team " + team);
ntinst.startClientTeam(team);
ntinst.startDSClient();
}

// start cameras
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ def listener(fromobj, key, value, isNew):
else:
print("Setting up NetworkTables client for team {}".format(team))
ntinst.startClientTeam(team)
ntinst.startDSClient()

# start cameras
for config in cameraConfigs:
Expand Down
1 change: 1 addition & 0 deletions deps/tools/multiCameraServer/src/multiCameraServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ int main(int argc, char* argv[]) {
} else {
wpi::outs() << "Setting up NetworkTables client for team " << team << '\n';
ntinst.StartClientTeam(team);
ntinst.StartDSClient();
}

// start cameras
Expand Down

0 comments on commit 3a9db7c

Please sign in to comment.