MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / loop

Method loop

OpenHD/ohd_telemetry/src/rc/JoystickReader.cpp:69–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void JoystickReader::loop() {
70 while (!terminate) {
71 connect_once_and_read_until_error();
72 // Error / no joystick found, try again later
73 std::this_thread::sleep_for(std::chrono::seconds(3));
74 }
75}
76
77void JoystickReader::connect_once_and_read_until_error() {
78 // We only need SDL "Joy", and are not interested in any display output or

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected