-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Hi,
we would like to store the drone’s position in the metadata of captured images. We were able to store the global position, but the relative altitude is being ignored. Is there a way to include it, or could you please add this feature to the firmware?
void MavlinkDriver::set_payload_global_position(const double latitude, const double longitude, const double altitude,
const double height_above_terrain)
{
mavlink_global_position_int_t msg = {};
msg.lat = latitude * 1E7; // convert to the format used in this mavlink msg
msg.lon = longitude * 1E7; // convert to the format used in this mavlink msg
msg.alt = altitude * 1E3; // convert to the format used in this mavlink msg
msg.relative_alt = height_above_terrain * 1E3; // TODO this is likely unused
mavlink_message_t generic_msg;
mavlink_msg_global_position_int_encode_chan(m_this_system_id, m_this_component_id, m_port->get_mav_channel(),
&generic_msg, &msg);
m_payload_interface->push_message_to_queue(generic_msg);
}Thank you
Metadata
Metadata
Assignees
Labels
No labels