mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 08:38:53 +08:00
mavlink/lib: move open_drone_id helpers to mavlink
I could not extract the open_drone_id helpers to a separate lib because it would require the mavlink headers while the mavlink library would also depend on it, so it ended up being a circular dependency. Instead, I'm now just using the headers from within the mavlink module as well as from the uavcan driver.
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "remoteid.hpp"
|
||||
#include <lib/open_drone_id/open_drone_id_translations.hpp>
|
||||
#include <modules/mavlink/open_drone_id_translations.hpp>
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
||||
using namespace time_literals;
|
||||
|
||||
@@ -60,7 +60,6 @@ add_subdirectory(mathlib EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(mixer_module EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(motion_planning EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(npfg EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(open_drone_id EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(perf EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(fw_performance_model EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(pid EXCLUDE_FROM_ALL)
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
############################################################################
|
||||
#
|
||||
# Copyright (c) 2024 PX4 Development Team. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# 3. Neither the name PX4 nor the names of its contributors may be
|
||||
# used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
############################################################################
|
||||
|
||||
px4_add_library(open_drone_id
|
||||
open_drone_id_translations.cpp
|
||||
open_drone_id_translations.hpp
|
||||
)
|
||||
|
||||
add_dependencies(open_drone_id mavlink_c_generate)
|
||||
|
||||
target_compile_options(open_drone_id PRIVATE -Wno-cast-align -Wno-address-of-packed-member)
|
||||
@@ -120,6 +120,7 @@ px4_add_module(
|
||||
mavlink_timesync.cpp
|
||||
mavlink_ulog.cpp
|
||||
MavlinkStatustextHandler.cpp
|
||||
open_drone_id_translations.cpp
|
||||
tune_publisher.cpp
|
||||
MODULE_CONFIG
|
||||
module.yaml
|
||||
@@ -135,7 +136,6 @@ px4_add_module(
|
||||
sensor_calibration
|
||||
geo
|
||||
mavlink_c
|
||||
open_drone_id
|
||||
timesync
|
||||
tunes
|
||||
variable_length_ringbuffer
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#define OPEN_DRONE_ID_BASIC_ID_HPP
|
||||
|
||||
#include <uORB/topics/vehicle_status.h>
|
||||
#include <lib/open_drone_id/open_drone_id_translations.hpp>
|
||||
#include <modules/mavlink/open_drone_id_translations.hpp>
|
||||
|
||||
class MavlinkStreamOpenDroneIdBasicId : public MavlinkStream
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user