Adapted for shared library use with ROS

This commit is contained in:
Roman Bapst
2014-09-27 12:01:11 +02:00
parent 020a829215
commit c8b1c5b119
4 changed files with 219 additions and 200 deletions
+5 -1
View File
@@ -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
+4
View File
@@ -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