From 04aa2bb3a46b3fe394df4a6e8a04036daf5e132f Mon Sep 17 00:00:00 2001 From: Carlo Wood Date: Mon, 24 Oct 2016 18:34:18 +0200 Subject: [PATCH] Add missing header files. These headers files were missing from the header files that I added them to; the fact that they were missing didn't lead to compile errors because by coincidence the missing headers are included in the source files before including these headers. But, after the reordering of header inclusions by Tools/fix_headers.sh, these cases will give rise to compiler errors. --- src/drivers/mpu9250/mag.h | 3 +++ src/lib/controllib/block/BlockParam.hpp | 1 + src/lib/mathlib/math/Matrix.hpp | 2 ++ src/modules/mavlink/mavlink_bridge_header.h | 1 + src/modules/mavlink/mavlink_log_handler.h | 1 + src/modules/mavlink/mavlink_orb_subscription.h | 2 +- src/modules/px4iofirmware/px4io.c | 1 + src/modules/systemlib/board_serial.h | 2 ++ src/modules/systemlib/cpuload.h | 1 + src/modules/uavcan/uavcan_servers.hpp | 2 ++ 10 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/drivers/mpu9250/mag.h b/src/drivers/mpu9250/mag.h index 892d4c0e401..8790ca1412f 100644 --- a/src/drivers/mpu9250/mag.h +++ b/src/drivers/mpu9250/mag.h @@ -33,6 +33,9 @@ #pragma once +#include "drivers/device/ringbuffer.h" // ringbuffer::RingBuffer +#include "drivers/drv_mag.h" // mag_calibration_s +#include "systemlib/perf_counter.h" // perf_counter_t /* in 16-bit sampling mode the mag resolution is 1.5 milli Gauss per bit */ diff --git a/src/lib/controllib/block/BlockParam.hpp b/src/lib/controllib/block/BlockParam.hpp index 3690372c7f2..77874f6181f 100644 --- a/src/lib/controllib/block/BlockParam.hpp +++ b/src/lib/controllib/block/BlockParam.hpp @@ -43,6 +43,7 @@ #include "Block.hpp" #include +#include // NULL namespace control { diff --git a/src/lib/mathlib/math/Matrix.hpp b/src/lib/mathlib/math/Matrix.hpp index e68e436a0c5..e50fef6b1b9 100644 --- a/src/lib/mathlib/math/Matrix.hpp +++ b/src/lib/mathlib/math/Matrix.hpp @@ -46,6 +46,8 @@ #include #include +#include "Vector.hpp" // Vector and eigen_matrix_instance + #include "matrix/math.hpp" #include diff --git a/src/modules/mavlink/mavlink_bridge_header.h b/src/modules/mavlink/mavlink_bridge_header.h index 6d10ec9c3ff..43e274a2286 100644 --- a/src/modules/mavlink/mavlink_bridge_header.h +++ b/src/modules/mavlink/mavlink_bridge_header.h @@ -52,6 +52,7 @@ #define MAVLINK_GET_CHANNEL_BUFFER mavlink_get_channel_buffer #define MAVLINK_GET_CHANNEL_STATUS mavlink_get_channel_status +#include // Needs to be included before v2.0/mavlink_types.h until https://github.com/ArduPilot/pymavlink/pull/22 makes it through. #include #include diff --git a/src/modules/mavlink/mavlink_log_handler.h b/src/modules/mavlink/mavlink_log_handler.h index 59fb162993f..e7d47e45083 100644 --- a/src/modules/mavlink/mavlink_log_handler.h +++ b/src/modules/mavlink/mavlink_log_handler.h @@ -40,6 +40,7 @@ #include #include #include +#include #include #include "mavlink_stream.h" diff --git a/src/modules/mavlink/mavlink_orb_subscription.h b/src/modules/mavlink/mavlink_orb_subscription.h index 9154e6a2b8d..c4240f5306a 100644 --- a/src/modules/mavlink/mavlink_orb_subscription.h +++ b/src/modules/mavlink/mavlink_orb_subscription.h @@ -43,7 +43,7 @@ #include #include - +#include "uORB/uORB.h" // orb_id_t class MavlinkOrbSubscription { diff --git a/src/modules/px4iofirmware/px4io.c b/src/modules/px4iofirmware/px4io.c index e24b66633f5..49195ef6e2d 100644 --- a/src/modules/px4iofirmware/px4io.c +++ b/src/modules/px4iofirmware/px4io.c @@ -47,6 +47,7 @@ #include #include #include +#include #include #include diff --git a/src/modules/systemlib/board_serial.h b/src/modules/systemlib/board_serial.h index 873d9657ba6..72187f17a10 100644 --- a/src/modules/systemlib/board_serial.h +++ b/src/modules/systemlib/board_serial.h @@ -42,6 +42,8 @@ #pragma once +#include // uint8_t + __BEGIN_DECLS __EXPORT int get_board_serial(uint8_t *serialid); diff --git a/src/modules/systemlib/cpuload.h b/src/modules/systemlib/cpuload.h index b5be48b59e3..5bad4b7a85f 100644 --- a/src/modules/systemlib/cpuload.h +++ b/src/modules/systemlib/cpuload.h @@ -37,6 +37,7 @@ #include #include +#include struct system_load_taskinfo_s { uint64_t total_runtime; ///< Runtime since start (start_time - total_runtime)/(start_time - current_time) = load diff --git a/src/modules/uavcan/uavcan_servers.hpp b/src/modules/uavcan/uavcan_servers.hpp index 868ffacc626..16364797cb4 100644 --- a/src/modules/uavcan/uavcan_servers.hpp +++ b/src/modules/uavcan/uavcan_servers.hpp @@ -41,6 +41,8 @@ #include #include +#include +#include #include #include