mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 04:23:34 +08:00
Adapted for shared library use with ROS
This commit is contained in:
+5
-1
@@ -45,14 +45,16 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef CONFIG_ARCH_ARM
|
||||
#include "uORB/topics/fence.h"
|
||||
#include "uORB/topics/vehicle_global_position.h"
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
#endif
|
||||
#include "geo_lookup/geo_mag_declination.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define CONSTANTS_ONE_G 9.80665f /* m/s^2 */
|
||||
#define CONSTANTS_AIR_DENSITY_SEA_LEVEL_15C 1.225f /* kg/m^3 */
|
||||
@@ -276,4 +278,6 @@ __EXPORT float _wrap_360(float bearing);
|
||||
__EXPORT float _wrap_pi(float bearing);
|
||||
__EXPORT float _wrap_2pi(float bearing);
|
||||
|
||||
#ifdef CONFIG_ARCH_ARM
|
||||
__END_DECLS
|
||||
#endif
|
||||
|
||||
@@ -40,8 +40,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef CONFIG_ARCH_ARM
|
||||
__BEGIN_DECLS
|
||||
|
||||
__EXPORT float get_mag_declination(float lat, float lon);
|
||||
|
||||
__END_DECLS
|
||||
#else
|
||||
float get_mag_declination(float lat, float lon);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user