[mag] make channel config availale in all cases for hmc58xx module

this is needed for the reporting function
This commit is contained in:
Gautier Hattenberger
2016-02-19 15:53:09 +01:00
parent dbb0c6c2ef
commit 5bd417e39e
+3 -4
View File
@@ -30,10 +30,6 @@
#include "pprzlink/messages.h" #include "pprzlink/messages.h"
#include "subsystems/datalink/downlink.h" #include "subsystems/datalink/downlink.h"
#if MODULE_HMC58XX_UPDATE_AHRS
#include "subsystems/imu.h"
#include "subsystems/abi.h"
#ifndef HMC58XX_CHAN_X #ifndef HMC58XX_CHAN_X
#define HMC58XX_CHAN_X 0 #define HMC58XX_CHAN_X 0
#endif #endif
@@ -44,6 +40,9 @@
#define HMC58XX_CHAN_Z 2 #define HMC58XX_CHAN_Z 2
#endif #endif
#if MODULE_HMC58XX_UPDATE_AHRS
#include "subsystems/imu.h"
#include "subsystems/abi.h"
#endif #endif
struct Hmc58xx mag_hmc58xx; struct Hmc58xx mag_hmc58xx;