mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Add examples.
Disable google tests for now.
This commit is contained in:
11
examples/usbstream/usbstream.cpp
Normal file
11
examples/usbstream/usbstream.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include "cameraserver.h"
|
||||
|
||||
#include <thread>
|
||||
|
||||
int main() {
|
||||
cs::USBCamera camera{"usbcam", 1};
|
||||
camera.SetVideoMode(cs::VideoMode::kMJPEG, 320, 240, 30);
|
||||
cs::HTTPSink httpServer{"httpserver", 8080};
|
||||
httpServer.SetSource(camera);
|
||||
for (;;) std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
}
|
||||
Reference in New Issue
Block a user