Thread: Dual Cameras?
View Single Post
  #1   Spotlight this post!  
Unread 02-03-2015, 08:04 PM
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Dual Cameras?

Hmm... OK, in looking through the WPILib sources (C++), it appears that the camera server is hard-coded to camera 0. Not only that, but the NI vision system remembers which cameras were enumerated as "cam0" and "cam1". In general, that's not necessarily a problem, unless one of your cameras gets trashed and you try to substitute another. The new camera will be enumerated as "camx" where x is > 0. This will cause the cameraserver to fail because it's hardcoded to only work with cam0.

So, short of porting mjpegserver over to the roboRIO, does anyone have an approach for using dual USB cameras?

TIA,

Mike