Skip to content

Commit 2f61d7c

Browse files
committed
fix: WHY i did dronecan.hpp?
1 parent f158a86 commit 2f61d7c

37 files changed

Lines changed: 38 additions & 38 deletions

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Include `dronecan.hpp` header and call `uavcanInitApplication` in the beginning
8282

8383
```c++
8484
// Include dronecan.hpp header file
85-
#include "libdcnode/dronecan.hpp"
85+
#include "libdcnode/dronecan.h"
8686

8787
// Initialize the library somewhere
8888
const uint8_t node_id = 42;
@@ -104,7 +104,7 @@ while (true) {
104104
Adding a publisher is very easy. Include `publisher.hpp` header, create an instance of the required publisher and just call `publish` when you need. Here is a BatteryInfo publisher example:
105105

106106
```c++
107-
#include "libdcnode/dronecan.hpp"
107+
#include "libdcnode/dronecan.h"
108108
#include "libdcnode/publisher.hpp"
109109

110110
// Create an instance of the publisher
@@ -136,7 +136,7 @@ Adding a subscriber is easy as well. Let's consider a RawCommand subscriber exam
136136
137137
```c++
138138
// Include necessary header files
139-
#include "libdcnode/dronecan.hpp"
139+
#include "libdcnode/dronecan.h"
140140
#include "libdcnode/subscriber.hpp"
141141
142142
// Add a callback handler function

examples/stm32_hal/hal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#include <iostream>
99
#include <string.h>
10-
#include "libdcnode/dronecan.hpp"
10+
#include "libdcnode/dronecan.h"
1111

1212
void platformSpecificReadUniqueID(uint8_t out_uid[4])
1313
{

examples/ubuntu/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <chrono>
1111
#include <string.h>
1212
#include "storage.h"
13-
#include "libdcnode/dronecan.hpp"
13+
#include "libdcnode/dronecan.h"
1414
#include "libdcnode/can_driver.h"
1515
// #include "libdcnode/subscriber.hpp"
1616
// #include "libdcnode/publisher.hpp"

include/libdcnode/legacy/dronecan/sensors/hygrometer/Hygrometer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#define DRONECAN_SENSORS_HYGROMETER_HYGROMETER_H_
1010

1111
#include "libdcnode/serialization_internal.h"
12-
#include "libdcnode/dronecan.hpp"
12+
#include "libdcnode/dronecan.h"
1313

1414
#define DRONECAN_SENSORS_HYGROMETER_HYGROMETER_ID 1032
1515
#define DRONECAN_SENSORS_HYGROMETER_HYGROMETER_SIGNATURE 0xCEB308892BF163E8ULL

include/libdcnode/legacy/uavcan/CoarseOrientation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define UAVCAN_COARCE_ORIENTATION_H_
88

99
#include "libdcnode/serialization_internal.h"
10-
#include "libdcnode/dronecan.hpp"
10+
#include "libdcnode/dronecan.h"
1111
#define UAVCAN_COARSE_ORIENTATION_MESSAGE_SIZE 2
1212

1313
/**

include/libdcnode/legacy/uavcan/com/rl/vibration/Measurement.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include <stdint.h>
1212
#include <stdbool.h>
13-
#include "libdcnode/dronecan.hpp"
13+
#include "libdcnode/dronecan.h"
1414
#include "libdcnode/serialization_internal.h"
1515

1616
/**

include/libdcnode/legacy/uavcan/equipment/actuator/ArrayCommand.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#ifndef UAVCAN_EQUIPMENT_ACTUATOR_ARRAY_COMMAND_H_
99
#define UAVCAN_EQUIPMENT_ACTUATOR_ARRAY_COMMAND_H_
1010

11-
#include "libdcnode/dronecan.hpp"
11+
#include "libdcnode/dronecan.h"
1212
#include "libdcnode/serialization_internal.h"
1313

1414
#define UAVCAN_EQUIPMENT_ACTUATOR_COMMAND_SIGNATURE 0x8d9a6a920c1d616c

include/libdcnode/legacy/uavcan/equipment/ahrs/MagneticFieldStrength.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#ifndef UAVCAN_EQUIPMENT_AHRS_MAGNETIC_FIELD_STRENGTH_H_
99
#define UAVCAN_EQUIPMENT_AHRS_MAGNETIC_FIELD_STRENGTH_H_
1010

11-
#include "libdcnode/dronecan.hpp"
11+
#include "libdcnode/dronecan.h"
1212
#include "libdcnode/serialization_internal.h"
1313

1414
#define UAVCAN_EQUIPMENT_AHRS_MAGNETIC_FIELD_STRENGTH_ID 1001

include/libdcnode/legacy/uavcan/equipment/ahrs/MagneticFieldStrength2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#ifndef UAVCAN_EQUIPMENT_AHRS_MAGNETIC_FIELD_STRENGTH2_H_
99
#define UAVCAN_EQUIPMENT_AHRS_MAGNETIC_FIELD_STRENGTH2_H_
1010

11-
#include "libdcnode/dronecan.hpp"
11+
#include "libdcnode/dronecan.h"
1212
#include "libdcnode/serialization_internal.h"
1313

1414
#define UAVCAN_EQUIPMENT_AHRS_MAGNETIC_FIELD_STRENGTH2_ID 1002

0 commit comments

Comments
 (0)