Skip to content

Commit

Permalink
mavlink/lib: move open_drone_id helpers to mavlink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
julianoes committed Aug 29, 2024
1 parent 6119b24 commit e41eaec
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 45 deletions.
2 changes: 1 addition & 1 deletion src/drivers/uavcan/remoteid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
41 changes: 0 additions & 41 deletions src/lib/open_drone_id/CMakeLists.txt

This file was deleted.

2 changes: 1 addition & 1 deletion src/modules/mavlink/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -135,7 +136,6 @@ px4_add_module(
sensor_calibration
geo
mavlink_c
open_drone_id
timesync
tunes
variable_length_ringbuffer
Expand Down
2 changes: 1 addition & 1 deletion src/modules/mavlink/streams/OPEN_DRONE_ID_BASIC_ID.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit e41eaec

Please sign in to comment.