diff --git a/platforms/common/include/px4_platform_common/defines.h b/platforms/common/include/px4_platform_common/defines.h index 6c325fa803..e0a740943b 100644 --- a/platforms/common/include/px4_platform_common/defines.h +++ b/platforms/common/include/px4_platform_common/defines.h @@ -39,7 +39,7 @@ #pragma once -#include +#include /**************************************************************************** * Defines for all platforms. diff --git a/platforms/common/include/px4_platform_common/i2c_spi_buses.h b/platforms/common/include/px4_platform_common/i2c_spi_buses.h index 85c8c63484..aa6dc90703 100644 --- a/platforms/common/include/px4_platform_common/i2c_spi_buses.h +++ b/platforms/common/include/px4_platform_common/i2c_spi_buses.h @@ -40,6 +40,7 @@ #include #include #include +#include #include #include diff --git a/platforms/common/px4_work_queue/ScheduledWorkItem.cpp b/platforms/common/px4_work_queue/ScheduledWorkItem.cpp index f5f9e130f0..794e390b37 100644 --- a/platforms/common/px4_work_queue/ScheduledWorkItem.cpp +++ b/platforms/common/px4_work_queue/ScheduledWorkItem.cpp @@ -31,6 +31,7 @@ * ****************************************************************************/ +#include #include namespace px4 diff --git a/platforms/common/px4_work_queue/WorkQueue.cpp b/platforms/common/px4_work_queue/WorkQueue.cpp index fa32017912..c8aa15995b 100644 --- a/platforms/common/px4_work_queue/WorkQueue.cpp +++ b/platforms/common/px4_work_queue/WorkQueue.cpp @@ -36,6 +36,7 @@ #include +#include #include #include #include diff --git a/platforms/common/px4_work_queue/WorkQueueManager.cpp b/platforms/common/px4_work_queue/WorkQueueManager.cpp index 95f9a47147..3852215b29 100644 --- a/platforms/common/px4_work_queue/WorkQueueManager.cpp +++ b/platforms/common/px4_work_queue/WorkQueueManager.cpp @@ -36,6 +36,7 @@ #include #include +#include #include #include #include diff --git a/platforms/common/work_queue/work_thread.c b/platforms/common/work_queue/work_thread.c index 7f2ee90533..4e4713a19c 100644 --- a/platforms/common/work_queue/work_thread.c +++ b/platforms/common/work_queue/work_thread.c @@ -39,6 +39,7 @@ #include #include +#include #include #include #include diff --git a/platforms/nuttx/src/px4/common/print_load.cpp b/platforms/nuttx/src/px4/common/print_load.cpp index fa341c7824..8c6486453a 100644 --- a/platforms/nuttx/src/px4/common/print_load.cpp +++ b/platforms/nuttx/src/px4/common/print_load.cpp @@ -43,6 +43,7 @@ #include #include +#include #include #include diff --git a/platforms/nuttx/src/px4/common/px4_init.cpp b/platforms/nuttx/src/px4/common/px4_init.cpp index 599f071955..fb371b9093 100644 --- a/platforms/nuttx/src/px4/common/px4_init.cpp +++ b/platforms/nuttx/src/px4/common/px4_init.cpp @@ -32,6 +32,7 @@ ****************************************************************************/ #include +#include #include #include #include diff --git a/platforms/nuttx/src/px4/common/px4_nuttx_impl.cpp b/platforms/nuttx/src/px4/common/px4_nuttx_impl.cpp index c736784f36..3c38ac3b09 100644 --- a/platforms/nuttx/src/px4/common/px4_nuttx_impl.cpp +++ b/platforms/nuttx/src/px4/common/px4_nuttx_impl.cpp @@ -37,6 +37,8 @@ * PX4 Middleware Wrapper NuttX Implementation */ +#include + #include #include diff --git a/platforms/nuttx/src/px4/common/px4_usr_crypto.cpp b/platforms/nuttx/src/px4/common/px4_usr_crypto.cpp index bb48cad6aa..4a12a30683 100644 --- a/platforms/nuttx/src/px4/common/px4_usr_crypto.cpp +++ b/platforms/nuttx/src/px4/common/px4_usr_crypto.cpp @@ -33,6 +33,7 @@ #if defined(PX4_CRYPTO) +#include #include #include #include diff --git a/platforms/nuttx/src/px4/common/usr_board_ctrl.c b/platforms/nuttx/src/px4/common/usr_board_ctrl.c index 89ec05090c..2da5e9dfbf 100644 --- a/platforms/nuttx/src/px4/common/usr_board_ctrl.c +++ b/platforms/nuttx/src/px4/common/usr_board_ctrl.c @@ -33,6 +33,8 @@ #include +#include + #include #include diff --git a/platforms/nuttx/src/px4/common/usr_mcu_version.cpp b/platforms/nuttx/src/px4/common/usr_mcu_version.cpp index e89693a2d1..1fc3f57b2d 100644 --- a/platforms/nuttx/src/px4/common/usr_mcu_version.cpp +++ b/platforms/nuttx/src/px4/common/usr_mcu_version.cpp @@ -38,6 +38,7 @@ */ #include +#include #include #include #include diff --git a/platforms/posix/src/px4/common/print_load.cpp b/platforms/posix/src/px4/common/print_load.cpp index 4cfce909d0..a392fb823f 100644 --- a/platforms/posix/src/px4/common/print_load.cpp +++ b/platforms/posix/src/px4/common/print_load.cpp @@ -46,6 +46,7 @@ #include #include +#include #include #include diff --git a/platforms/posix/src/px4/common/px4_init.cpp b/platforms/posix/src/px4/common/px4_init.cpp index b93a53ba5f..71af70565d 100644 --- a/platforms/posix/src/px4/common/px4_init.cpp +++ b/platforms/posix/src/px4/common/px4_init.cpp @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include diff --git a/platforms/posix/src/px4/common/px4_sem.cpp b/platforms/posix/src/px4/common/px4_sem.cpp index 272ee45ac7..fd43ae0e85 100644 --- a/platforms/posix/src/px4/common/px4_sem.cpp +++ b/platforms/posix/src/px4/common/px4_sem.cpp @@ -38,6 +38,7 @@ */ #include +#include #include #include #include diff --git a/src/drivers/cyphal/Publishers/Publisher.hpp b/src/drivers/cyphal/Publishers/Publisher.hpp index 2661a053ef..e0d0769867 100644 --- a/src/drivers/cyphal/Publishers/Publisher.hpp +++ b/src/drivers/cyphal/Publishers/Publisher.hpp @@ -42,6 +42,7 @@ #pragma once #include +#include #include #include diff --git a/src/drivers/cyphal/Subscribers/BaseSubscriber.hpp b/src/drivers/cyphal/Subscribers/BaseSubscriber.hpp index a673bd046b..33b8f0ea87 100644 --- a/src/drivers/cyphal/Subscribers/BaseSubscriber.hpp +++ b/src/drivers/cyphal/Subscribers/BaseSubscriber.hpp @@ -42,6 +42,7 @@ #pragma once #include +#include #include diff --git a/src/drivers/distance_sensor/broadcom/afbrs50/argus_hal_test.c b/src/drivers/distance_sensor/broadcom/afbrs50/argus_hal_test.c index 8b877fa1d4..5f8fd4b1f1 100644 --- a/src/drivers/distance_sensor/broadcom/afbrs50/argus_hal_test.c +++ b/src/drivers/distance_sensor/broadcom/afbrs50/argus_hal_test.c @@ -48,6 +48,7 @@ #include #include +#include /******************************************************************************* * Definitions diff --git a/src/drivers/gps/definitions.h b/src/drivers/gps/definitions.h index 5aa4cbb177..a1f5ac6a17 100644 --- a/src/drivers/gps/definitions.h +++ b/src/drivers/gps/definitions.h @@ -41,6 +41,7 @@ #include #include +#include #include #include #include diff --git a/src/drivers/magnetometer/hmc5883/HMC5883.hpp b/src/drivers/magnetometer/hmc5883/HMC5883.hpp index 9192fb5565..98b8bd457a 100644 --- a/src/drivers/magnetometer/hmc5883/HMC5883.hpp +++ b/src/drivers/magnetometer/hmc5883/HMC5883.hpp @@ -35,6 +35,7 @@ #include #include +#include #include #include #include diff --git a/src/drivers/magnetometer/hmc5883/hmc5883_i2c.cpp b/src/drivers/magnetometer/hmc5883/hmc5883_i2c.cpp index 99ba88bebf..ebc6ccde67 100644 --- a/src/drivers/magnetometer/hmc5883/hmc5883_i2c.cpp +++ b/src/drivers/magnetometer/hmc5883/hmc5883_i2c.cpp @@ -38,6 +38,7 @@ */ #include +#include #include #include "hmc5883.h" diff --git a/src/drivers/magnetometer/hmc5883/hmc5883_spi.cpp b/src/drivers/magnetometer/hmc5883/hmc5883_spi.cpp index 1f3b0175b8..1cceeb1e52 100644 --- a/src/drivers/magnetometer/hmc5883/hmc5883_spi.cpp +++ b/src/drivers/magnetometer/hmc5883/hmc5883_spi.cpp @@ -38,6 +38,7 @@ */ #include +#include #include #include "hmc5883.h" diff --git a/src/drivers/tap_esc/tap_esc_common.cpp b/src/drivers/tap_esc/tap_esc_common.cpp index d2ba932dbc..cf66afe29e 100644 --- a/src/drivers/tap_esc/tap_esc_common.cpp +++ b/src/drivers/tap_esc/tap_esc_common.cpp @@ -44,6 +44,7 @@ #include // arraySize #include #include +#include #ifndef B250000 #define B250000 250000 diff --git a/src/drivers/uavcan/sensors/battery.cpp b/src/drivers/uavcan/sensors/battery.cpp index b8d6f098ea..bace756c65 100644 --- a/src/drivers/uavcan/sensors/battery.cpp +++ b/src/drivers/uavcan/sensors/battery.cpp @@ -35,6 +35,7 @@ #include #include +#include const char *const UavcanBatteryBridge::NAME = "battery"; diff --git a/src/examples/px4_simple_app/px4_simple_app.c b/src/examples/px4_simple_app/px4_simple_app.c index c9f9d61927..25e89efcf1 100644 --- a/src/examples/px4_simple_app/px4_simple_app.c +++ b/src/examples/px4_simple_app/px4_simple_app.c @@ -39,6 +39,7 @@ */ #include +#include #include #include #include diff --git a/src/lib/cdev/CDev.cpp b/src/lib/cdev/CDev.cpp index de5e0482e9..b5bcce2dd3 100644 --- a/src/lib/cdev/CDev.cpp +++ b/src/lib/cdev/CDev.cpp @@ -41,6 +41,7 @@ #include +#include #include namespace cdev diff --git a/src/lib/cdev/test/cdevtest_example.cpp b/src/lib/cdev/test/cdevtest_example.cpp index 51eb3f731c..48bed08d0b 100644 --- a/src/lib/cdev/test/cdevtest_example.cpp +++ b/src/lib/cdev/test/cdevtest_example.cpp @@ -41,6 +41,7 @@ #include "cdevtest_example.h" +#include #include #include #include diff --git a/src/lib/controllib/block/Block.cpp b/src/lib/controllib/block/Block.cpp index 32662d6cf1..bc9a798322 100644 --- a/src/lib/controllib/block/Block.cpp +++ b/src/lib/controllib/block/Block.cpp @@ -40,8 +40,11 @@ #include "Block.hpp" #include "BlockParam.hpp" +#include #include +#include + namespace control { diff --git a/src/lib/controllib/block/BlockParam.cpp b/src/lib/controllib/block/BlockParam.cpp index 94b885ec2c..f78258ade3 100644 --- a/src/lib/controllib/block/BlockParam.cpp +++ b/src/lib/controllib/block/BlockParam.cpp @@ -39,10 +39,13 @@ #include "BlockParam.hpp" +#include #include #include +#include + namespace control { diff --git a/src/lib/drivers/device/CDev.cpp b/src/lib/drivers/device/CDev.cpp index f5b9ddb8d5..835454b821 100644 --- a/src/lib/drivers/device/CDev.cpp +++ b/src/lib/drivers/device/CDev.cpp @@ -41,6 +41,7 @@ #include +#include #include namespace device diff --git a/src/lib/drivers/device/Device.hpp b/src/lib/drivers/device/Device.hpp index 689467f2ab..8e3ffa1cba 100644 --- a/src/lib/drivers/device/Device.hpp +++ b/src/lib/drivers/device/Device.hpp @@ -40,9 +40,12 @@ #ifndef _DEVICE_DEVICE_HPP #define _DEVICE_DEVICE_HPP +#include + /* * Includes here should only cover the needs of the framework definitions. */ +#include #include #include diff --git a/src/lib/drivers/led/led.cpp b/src/lib/drivers/led/led.cpp index c99ddfe2e5..e472e859e3 100644 --- a/src/lib/drivers/led/led.cpp +++ b/src/lib/drivers/led/led.cpp @@ -37,6 +37,7 @@ * LED driver to control the onboard LED(s) via ioctl interface. */ +#include #include #include #include diff --git a/src/lib/geo/geo.h b/src/lib/geo/geo.h index 0b49c112a2..cb93e99be5 100644 --- a/src/lib/geo/geo.h +++ b/src/lib/geo/geo.h @@ -48,6 +48,8 @@ #include #include +#include + #include #include diff --git a/src/lib/parameters/flashparams/flashparams.cpp b/src/lib/parameters/flashparams/flashparams.cpp index f5221daf7a..6eb8c9e8a2 100644 --- a/src/lib/parameters/flashparams/flashparams.cpp +++ b/src/lib/parameters/flashparams/flashparams.cpp @@ -43,6 +43,7 @@ */ #include +#include #include #include diff --git a/src/lib/parameters/parameters_common.cpp b/src/lib/parameters/parameters_common.cpp index 0fc6eaaca2..215bc7e1b1 100644 --- a/src/lib/parameters/parameters_common.cpp +++ b/src/lib/parameters/parameters_common.cpp @@ -31,6 +31,8 @@ * ****************************************************************************/ +#include + /** * @file parameters_common.cpp * diff --git a/src/lib/parameters/parameters_ioctl.cpp b/src/lib/parameters/parameters_ioctl.cpp index 2c742cae78..47a567ec93 100644 --- a/src/lib/parameters/parameters_ioctl.cpp +++ b/src/lib/parameters/parameters_ioctl.cpp @@ -38,6 +38,9 @@ */ #define PARAM_IMPLEMENTATION + +#include + #include "param.h" #include "parameters_ioctl.h" #include diff --git a/src/lib/parameters/parameters_ioctl.h b/src/lib/parameters/parameters_ioctl.h index d8e185cb1e..4e046d213a 100644 --- a/src/lib/parameters/parameters_ioctl.h +++ b/src/lib/parameters/parameters_ioctl.h @@ -42,6 +42,7 @@ #define PARAM_IMPLEMENTATION #include "param.h" #include +#include #define _PARAMIOC(_n) (_PX4_IOC(_PARAMIOCBASE, _n)) diff --git a/src/lib/parameters/usr_parameters_if.cpp b/src/lib/parameters/usr_parameters_if.cpp index 86a64d5c1f..04be2219ff 100644 --- a/src/lib/parameters/usr_parameters_if.cpp +++ b/src/lib/parameters/usr_parameters_if.cpp @@ -42,6 +42,7 @@ #include #include #include +#include #include "parameters_common.cpp" diff --git a/src/lib/rc/dsm.cpp b/src/lib/rc/dsm.cpp index 4792e01ed4..d1b78a99bf 100644 --- a/src/lib/rc/dsm.cpp +++ b/src/lib/rc/dsm.cpp @@ -42,6 +42,7 @@ #include #include #include +#include #include #include diff --git a/src/lib/wind_estimator/WindEstimator.hpp b/src/lib/wind_estimator/WindEstimator.hpp index 8dbb2251f7..f168ecbe3f 100644 --- a/src/lib/wind_estimator/WindEstimator.hpp +++ b/src/lib/wind_estimator/WindEstimator.hpp @@ -38,6 +38,8 @@ #pragma once +#include + #include #include diff --git a/src/modules/commander/lm_fit.hpp b/src/modules/commander/lm_fit.hpp index 52fa674d02..620a0b5030 100644 --- a/src/modules/commander/lm_fit.hpp +++ b/src/modules/commander/lm_fit.hpp @@ -33,6 +33,8 @@ #pragma once +#include + #include #include diff --git a/src/modules/ekf2/EKF/estimator_interface.h b/src/modules/ekf2/EKF/estimator_interface.h index c7bd08c528..37dfda4bdb 100644 --- a/src/modules/ekf2/EKF/estimator_interface.h +++ b/src/modules/ekf2/EKF/estimator_interface.h @@ -43,6 +43,7 @@ #define EKF_ESTIMATOR_INTERFACE_H #if defined(MODULE_NAME) +#include # define ECL_INFO PX4_DEBUG # define ECL_WARN PX4_DEBUG # define ECL_ERR PX4_DEBUG diff --git a/src/modules/gimbal/input_rc.cpp b/src/modules/gimbal/input_rc.cpp index 182bab9b05..e95705ff66 100644 --- a/src/modules/gimbal/input_rc.cpp +++ b/src/modules/gimbal/input_rc.cpp @@ -40,7 +40,7 @@ #include #include #include - +#include namespace gimbal { diff --git a/src/modules/gimbal/input_test.cpp b/src/modules/gimbal/input_test.cpp index 09f4a21d48..c124ab869c 100644 --- a/src/modules/gimbal/input_test.cpp +++ b/src/modules/gimbal/input_test.cpp @@ -34,6 +34,7 @@ #include "input_test.h" #include +#include #include #include diff --git a/src/modules/logger/log_writer_file.cpp b/src/modules/logger/log_writer_file.cpp index e4f1787fb6..f9f08fddb6 100644 --- a/src/modules/logger/log_writer_file.cpp +++ b/src/modules/logger/log_writer_file.cpp @@ -41,6 +41,7 @@ #include #include #include +#include #ifdef __PX4_NUTTX #include #endif /* __PX4_NUTTX */ diff --git a/src/modules/mavlink/mavlink_shell.cpp b/src/modules/mavlink/mavlink_shell.cpp index 38bd12932e..cce39a472f 100644 --- a/src/modules/mavlink/mavlink_shell.cpp +++ b/src/modules/mavlink/mavlink_shell.cpp @@ -40,6 +40,8 @@ #include "mavlink_shell.h" #include +#include +#include #include #include diff --git a/src/systemcmds/tests/test_dataman.c b/src/systemcmds/tests/test_dataman.c index 44fb747540..e553323060 100644 --- a/src/systemcmds/tests/test_dataman.c +++ b/src/systemcmds/tests/test_dataman.c @@ -36,6 +36,7 @@ * Tests for the data manager. */ +#include #include #include diff --git a/src/systemcmds/tests/test_hrt.cpp b/src/systemcmds/tests/test_hrt.cpp index 65eb529a86..e5274d72d7 100644 --- a/src/systemcmds/tests/test_hrt.cpp +++ b/src/systemcmds/tests/test_hrt.cpp @@ -37,6 +37,7 @@ */ #include +#include #include #include diff --git a/src/systemcmds/tests/test_perf.c b/src/systemcmds/tests/test_perf.c index cdde16afc5..f3c23b8ea6 100644 --- a/src/systemcmds/tests/test_perf.c +++ b/src/systemcmds/tests/test_perf.c @@ -36,6 +36,7 @@ * Tests related to the performance counter. */ +#include #include #include diff --git a/src/systemcmds/tests/test_sleep.c b/src/systemcmds/tests/test_sleep.c index 840e4bc456..b5dbf64567 100644 --- a/src/systemcmds/tests/test_sleep.c +++ b/src/systemcmds/tests/test_sleep.c @@ -36,6 +36,8 @@ * Tests the px4_usleep() method. */ +#include +#include #include #include #include