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

Method ack_command

OpenHD/ohd_telemetry/src/internal/OHDMainComponent.cpp:227–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227MavlinkMessage OHDMainComponent::ack_command(const uint8_t source_sys_id,
228 const uint8_t source_comp_id,
229 uint16_t command_id,
230 bool success) {
231 MavlinkMessage ret{};
232 const auto result = success ? MAV_RESULT_ACCEPTED : MAV_RESULT_UNSUPPORTED;
233 mavlink_msg_command_ack_pack(m_sys_id, m_comp_id, &ret.m, command_id, result,
234 255, 0, source_sys_id, source_comp_id);
235 return ret;
236}
237
238std::optional<MavlinkMessage> OHDMainComponent::handle_timesync_message(
239 const MavlinkMessage& message) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected