cmake remove circular linking and reorganize

- px4_add_module now requires MAIN
 - px4_add_library doesn't automatically link
This commit is contained in:
Daniel Agar
2018-04-11 15:10:51 -04:00
parent a8bc3d187f
commit ea3acb7121
576 changed files with 1406 additions and 2014 deletions
+1 -2
View File
@@ -52,6 +52,5 @@ px4_add_module(
PreflightCheck.cpp
arm_auth.cpp
DEPENDS
platforms__common
df_driver_framework
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -1
View File
@@ -52,7 +52,7 @@
#include <poll.h>
#include <systemlib/err.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
#include <systemlib/rc_check.h>
#include <systemlib/mavlink_log.h>
@@ -143,7 +143,7 @@
#include <drivers/drv_accel.h>
#include <lib/ecl/geo/geo.h>
#include <conversion/rotation.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
#include <systemlib/err.h>
#include <systemlib/mavlink_log.h>
#include <uORB/topics/vehicle_attitude.h>
@@ -53,7 +53,7 @@
#include <drivers/drv_airspeed.h>
#include <uORB/topics/differential_pressure.h>
#include <systemlib/mavlink_log.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
#include <systemlib/err.h>
#include <systemlib/airspeed.h>
+1 -1
View File
@@ -46,7 +46,7 @@
#include <uORB/topics/sensor_combined.h>
#include <drivers/drv_baro.h>
#include <systemlib/mavlink_log.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
int do_baro_calibration(orb_advert_t *mavlink_log_pub)
{
+1 -1
View File
@@ -76,7 +76,7 @@
#include <systemlib/err.h>
#include <systemlib/hysteresis/hysteresis.h>
#include <systemlib/mavlink_log.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
#include <systemlib/rc_check.h>
#include <systemlib/state_table.h>
+1 -1
View File
@@ -58,7 +58,7 @@
#include <uORB/topics/led_control.h>
#include <uORB/topics/tune_control.h>
#include <systemlib/err.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
#include <drivers/drv_hrt.h>
#include <drivers/drv_tone_alarm.h>
+1 -1
View File
@@ -42,7 +42,7 @@
*/
#include <px4_config.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
/**
* Roll trim
@@ -39,6 +39,4 @@ px4_add_module(
../state_machine_helper.cpp
../PreflightCheck.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -1
View File
@@ -57,7 +57,7 @@
#include <uORB/topics/sensor_correction.h>
#include <drivers/drv_gyro.h>
#include <systemlib/mavlink_log.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
#include <systemlib/err.h>
static const char *sensor_name = "gyro";
+1 -1
View File
@@ -58,7 +58,7 @@
#include <drivers/drv_mag.h>
#include <drivers/drv_tone_alarm.h>
#include <systemlib/mavlink_log.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
#include <systemlib/err.h>
#include <uORB/topics/sensor_combined.h>
+1 -1
View File
@@ -48,7 +48,7 @@
#include <uORB/topics/sensor_combined.h>
#include <uORB/topics/manual_control_setpoint.h>
#include <systemlib/mavlink_log.h>
#include <systemlib/param/param.h>
#include <parameters/param.h>
#include <systemlib/err.h>
int do_trim_calibration(orb_advert_t *mavlink_log_pub)