| 402 | } |
| 403 | |
| 404 | void 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 |
| 414 | void GroundTelemetry::enable_joystick() { |
nothing calls this directly
no test coverage detected