Log in

View Full Version : Two cameras?


Jackson Hogan
28-02-2016, 12:55
Hello, Does anyone know how to setup two cameras on the driver station? I cant figure out how to show two cameras on the driver station. Is there any example code i can check out?

Greg McKaskle
28-02-2016, 14:14
There have been other threads showing how to get two camera loops serving up on the robot, and showing how to have two cameras and one channel that selects which to transmit.

Are you asking more about the Dashboard itself? If that is the case, I'd suggest adding another tab, or using the custom tab for your vision display. You need to get the camera images from the server and send to the correct display.

Greg McKaskle

Jackson Hogan
28-02-2016, 14:26
Thanks!
Currently i don't have access to a test bench/robot so i can't test anything. Is there anyway i can test the usb cameras on the laptop?

Greg McKaskle
28-02-2016, 14:34
Provided you move the robot camera servers to the laptop, sure. You can do it with two networked laptops, or one that is running both the dashboard and servers. Be sure to pay attention to which ports will be open on the field, and you will need to modify the dashboard to use the correct camera IP. The default DB uses the robot IP for USB camera IP since it is the roboRIO that is transmitting the USB streams. So change that to be the test server, and you should have a pretty good test platform for multiple cameras.

Greg McKaskle

Jackson Hogan
28-02-2016, 14:37
Can you explain a little more/better? Sorry i don't really understand what your saying.