Skip to content
Snippets Groups Projects
Commit 86c581b2 authored by Lorenz Meier's avatar Lorenz Meier Committed by Lorenz Meier
Browse files

Enable usage of UAVCAN node ID for params

parent 9866ff89
No related branches found
No related tags found
No related merge requests found
......@@ -349,7 +349,10 @@ MavlinkParametersManager::send(const hrt_abstime t)
msg.param_type = MAVLINK_TYPE_INT32_T;
}
mavlink_msg_param_value_send_struct(_mavlink->get_channel(), &msg);
// Re-pack the message with the UAVCAN node ID
mavlink_message_t mavlink_packet;
mavlink_msg_param_value_encode_chan(mavlink_system.sysid, value.node_id, _mavlink->get_channel(), &mavlink_packet, &msg);
_mavlink_resend_uart(_mavlink->get_channel(), &mavlink_packet);
} else if (_send_all_index >= 0 && _mavlink->boot_complete()) {
/* send all parameters if requested, but only after the system has booted */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment