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

Method set_link_handle

OpenHD/ohd_telemetry/src/GroundTelemetry.cpp:404–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404void GroundTelemetry::set_link_handle(std::shared_ptr<OHDLink> link) {
405 // only call this once, we do not support changing the link handle at run time
406 assert(m_wb_endpoint == nullptr);
407 m_wb_endpoint = std::make_unique<WBEndpoint>(link, "wb_tx");
408 m_wb_endpoint->registerCallback([this](std::vector<MavlinkMessage> messages) {
409 on_messages_air_unit(messages);
410 });
411}
412
413#ifdef OPENHD_TELEMETRY_SDL_FOR_JOYSTICK_FOUND
414void GroundTelemetry::enable_joystick() {

Callers

nothing calls this directly

Calls 1

registerCallbackMethod · 0.80

Tested by

no test coverage detected