mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 04:03:34 +08:00
move geo and geo_lookup to PX4/ecl
This commit is contained in:
@@ -40,7 +40,8 @@
|
||||
*/
|
||||
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <lib/geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <lib/ecl/geo_lookup/geo_mag_declination.h>
|
||||
#include <mathlib/math/filter/LowPassFilter2p.hpp>
|
||||
#include <mathlib/mathlib.h>
|
||||
#include <px4_config.h>
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
#include <string.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <drivers/drv_accel.h>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <conversion/rotation.h>
|
||||
#include <systemlib/param/param.h>
|
||||
#include <systemlib/err.h>
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
#include <poll.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <systemlib/mavlink_log.h>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <string.h>
|
||||
#include <mathlib/mathlib.h>
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
#include <dataman/dataman.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <drivers/drv_tone_alarm.h>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <mathlib/mathlib.h>
|
||||
#include <navigator/navigation.h>
|
||||
#include <px4_defines.h>
|
||||
|
||||
@@ -37,9 +37,11 @@ px4_add_module(
|
||||
-Wno-sign-compare # TODO: fix all sign-compare
|
||||
STACK_MAIN 2500
|
||||
STACK_MAX 4000
|
||||
INCLUDES
|
||||
${PX4_SOURCE_DIR}/src/lib/ecl
|
||||
SRCS
|
||||
ekf2_main.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
git_ecl
|
||||
ecl
|
||||
)
|
||||
|
||||
@@ -38,5 +38,5 @@ px4_add_module(
|
||||
DEPENDS
|
||||
platforms__common
|
||||
git_ecl
|
||||
lib__ecl
|
||||
ecl
|
||||
)
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
#include <ecl/attitude_fw/ecl_roll_controller.h>
|
||||
#include <ecl/attitude_fw/ecl_wheel_controller.h>
|
||||
#include <ecl/attitude_fw/ecl_yaw_controller.h>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <mathlib/mathlib.h>
|
||||
#include <px4_config.h>
|
||||
#include <px4_defines.h>
|
||||
|
||||
@@ -38,13 +38,14 @@ px4_add_module(
|
||||
MODULE modules__fw_pos_control_l1
|
||||
MAIN fw_pos_control_l1
|
||||
STACK_MAIN 1200
|
||||
COMPILE_FLAGS
|
||||
INCLUDES
|
||||
${PX4_SOURCE_DIR}/src/lib/ecl
|
||||
SRCS
|
||||
FixedwingPositionControl.cpp
|
||||
Landingslope.cpp
|
||||
DEPENDS
|
||||
git_ecl
|
||||
lib__ecl
|
||||
ecl
|
||||
launchdetection
|
||||
runway_takeoff
|
||||
)
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <ecl/l1/ecl_l1_pos_controller.h>
|
||||
#include <ecl/tecs/tecs.h>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <mathlib/mathlib.h>
|
||||
#include <px4_config.h>
|
||||
#include <px4_defines.h>
|
||||
|
||||
@@ -38,8 +38,6 @@ px4_add_module(
|
||||
SRCS
|
||||
GroundRoverAttitudeControl.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
git_ecl
|
||||
lib__ecl
|
||||
ecl
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@@ -35,11 +35,11 @@ px4_add_module(
|
||||
MAIN gnd_pos_control
|
||||
STACK_MAIN 1200
|
||||
COMPILE_FLAGS
|
||||
INCLUDES
|
||||
${PX4_SOURCE_DIR}/src/lib/ecl
|
||||
SRCS
|
||||
GroundRoverPositionControl.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
git_ecl
|
||||
lib__ecl
|
||||
ecl
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <ecl/l1/ecl_l1_pos_controller.h>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <mathlib/mathlib.h>
|
||||
#include <systemlib/perf_counter.h>
|
||||
#include <systemlib/pid/pid.h>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include <px4_module_params.h>
|
||||
#include <controllib/blocks.hpp>
|
||||
#include <mathlib/mathlib.h>
|
||||
#include <lib/geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <matrix/Matrix.hpp>
|
||||
|
||||
// uORB Subscriptions
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
#include <systemlib/perf_counter.h>
|
||||
#include <systemlib/systemlib.h>
|
||||
#include <systemlib/mavlink_log.h>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <dataman/dataman.h>
|
||||
#include <version/version.h>
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
#include <commander/px4_custom_mode.h>
|
||||
#include <drivers/drv_pwm_output.h>
|
||||
#include <drivers/drv_rc_input.h>
|
||||
#include <lib/geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <mathlib/mathlib.h>
|
||||
#include <px4_time.h>
|
||||
#include <systemlib/err.h>
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <math.h>
|
||||
#include <lib/geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <systemlib/err.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <px4_defines.h>
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
#include <systemlib/err.h>
|
||||
#include <systemlib/airspeed.h>
|
||||
#include <commander/px4_custom_mode.h>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
|
||||
#include <uORB/topics/vehicle_command_ack.h>
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
#include <conversion/rotation.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <lib/geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <systemlib/circuit_breaker.h>
|
||||
#include <mathlib/math/Limits.hpp>
|
||||
#include <mathlib/math/Functions.hpp>
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
#include <uORB/topics/vehicle_status.h>
|
||||
|
||||
#include <float.h>
|
||||
#include <lib/geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <mathlib/mathlib.h>
|
||||
#include <systemlib/mavlink_log.h>
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
#include <systemlib/mavlink_log.h>
|
||||
#include <systemlib/err.h>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <navigator/navigation.h>
|
||||
|
||||
#include <uORB/uORB.h>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
#include <systemlib/mavlink_log.h>
|
||||
#include <systemlib/err.h>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <navigator/navigation.h>
|
||||
|
||||
#include <uORB/uORB.h>
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
#include <uORB/uORB.h>
|
||||
#include <uORB/topics/position_setpoint_triplet.h>
|
||||
#include <uORB/topics/follow_target.h>
|
||||
#include <lib/geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <lib/mathlib/math/Limits.hpp>
|
||||
|
||||
#include "navigator.h"
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
#include <dataman/dataman.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <systemlib/mavlink_log.h>
|
||||
|
||||
#include "navigator.h"
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
#include <px4_module_params.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <px4_defines.h>
|
||||
#include <uORB/topics/sensor_combined.h>
|
||||
#include <uORB/topics/vehicle_global_position.h>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
#include "navigator.h"
|
||||
|
||||
#include <systemlib/mavlink_log.h>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <navigator/navigation.h>
|
||||
#include <uORB/uORB.h>
|
||||
#include <uORB/topics/mission.h>
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
#include <dataman/dataman.h>
|
||||
#include <systemlib/mavlink_log.h>
|
||||
#include <systemlib/err.h>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <lib/mathlib/mathlib.h>
|
||||
#include <navigator/navigation.h>
|
||||
#include <uORB/uORB.h>
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
#include <math.h>
|
||||
#include <float.h>
|
||||
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <systemlib/mavlink_log.h>
|
||||
#include <mathlib/mathlib.h>
|
||||
#include <uORB/uORB.h>
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
#include <drivers/drv_pwm_output.h>
|
||||
#include <fw_pos_control_l1/Landingslope.hpp>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <mathlib/mathlib.h>
|
||||
#include <systemlib/mavlink_log.h>
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
#include <dataman/dataman.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <mathlib/mathlib.h>
|
||||
#include <px4_config.h>
|
||||
#include <px4_defines.h>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <matrix/math.hpp>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <px4_module_params.h>
|
||||
#include <uORB/topics/landing_target_pose.h>
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
#include <systemlib/mavlink_log.h>
|
||||
#include <systemlib/err.h>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
|
||||
#include <uORB/uORB.h>
|
||||
#include <navigator/navigation.h>
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
#include <poll.h>
|
||||
#include <systemlib/err.h>
|
||||
#include <systemlib/mavlink_log.h>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <platforms/px4_defines.h>
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
#include <uORB/topics/distance_sensor.h>
|
||||
#include <v2.0/mavlink_types.h>
|
||||
#include <v2.0/common/mavlink.h>
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
namespace simulator
|
||||
{
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
#include "simulator.h"
|
||||
#include <simulator_config.h>
|
||||
#include "errno.h"
|
||||
#include <geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <drivers/drv_pwm_output.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
@@ -40,11 +40,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <geo/geo.h>
|
||||
#include "airspeed.h"
|
||||
|
||||
#include <px4_defines.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
|
||||
/**
|
||||
* Calculate indicated airspeed.
|
||||
*
|
||||
@@ -121,7 +121,7 @@ float calc_indicated_airspeed_corrected(enum AIRSPEED_COMPENSATION_MODEL pmodel,
|
||||
// check if the tube diameter and dp is nonzero to avoid division by 0
|
||||
if ((tube_dia_mm > 0.0f) && (dp > 0.0f)) {
|
||||
const float d_tubePow4 = powf(tube_dia_mm * 1e-3f, 4);
|
||||
const float denominator = (float)M_PI * d_tubePow4 * rho_air * dp;
|
||||
const float denominator = M_PI_F * d_tubePow4 * rho_air * dp;
|
||||
|
||||
// avoid division by 0
|
||||
float eps = 0.0f;
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
#include <arch/board/board.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <drivers/drv_pwm_output.h>
|
||||
#include <lib/geo/geo.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <lib/mathlib/mathlib.h>
|
||||
#include <systemlib/param/param.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user