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

Method MEndpoint

OpenHD/ohd_telemetry/src/endpoints/MEndpoint.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29// #define OHD_TELEMETRY_TESTING_ENABLE_PACKET_LOSS
30
31MEndpoint::MEndpoint(std::string tag, bool debug_mavlink_msg_packet_loss)
32 : TAG(std::move(tag)),
33 m_mavlink_channel(checkoutFreeChannel()),
34 m_debug_mavlink_msg_packet_loss(debug_mavlink_msg_packet_loss) {
35 openhd::log::get_default()->debug(
36 "{} using channel:{} debug_mavlink_msg_packet_los:{}", TAG,
37 m_mavlink_channel, m_debug_mavlink_msg_packet_loss);
38}
39
40void MEndpoint::sendMessages(const std::vector<MavlinkMessage>& messages) {
41 if (messages.empty()) return;

Callers

nothing calls this directly

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected