RobotCasserole1736 / RobotCasserole2017

Robot Casserole robot source code for the 2017 FRC game, First Steamworks.
MIT License
0 stars 0 forks source link

Investigate switching between camera input to a stream in code #103

Closed imdunne8 closed 7 years ago

imdunne8 commented 7 years ago

See if switching between two stored UsbCamera inputs to an MJPG stream output is as seamless as it seems like it could be. Does the feed automatically start at the end (most recent image) when it is passed in or do we have to keep flushing the stream from the camera somehow.

imdunne8 commented 7 years ago

Mostly done, but still need to add functionality to the driver view that refreshes the driver stream whenever the stream is switched. This can be accomplished by sending some signal to switch in the json, watching for that in javascript, and if found setting the innerhtml of the stream div to the same contents as it already holds. Not doing this quite yet because we don't know for sure if we're even going to use multiple driver cameras yet.

gerth2 commented 7 years ago

fyi, ran all the testing tonight with this on the robot. Wasn't watching the cameras, but there didn't appear to be any stability issues

gerth2 commented 7 years ago

Finished - will be integrated when we need it