mirror of https://github.com/ArduPilot/ardupilot
Fix AP_Math include.
Fixes issue #137 git-svn-id: https://arducopter.googlecode.com/svn/trunk@562 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
0f5d01b563
commit
4e91c0c7d6
|
@ -35,6 +35,7 @@ extern "C" {
|
||||||
|
|
||||||
#include <Wire.h>
|
#include <Wire.h>
|
||||||
#include "APM_Compass.h"
|
#include "APM_Compass.h"
|
||||||
|
#include "../AP_Math/AP_Math.h"
|
||||||
|
|
||||||
#define CompassAddress 0x1E
|
#define CompassAddress 0x1E
|
||||||
|
|
||||||
|
@ -162,4 +163,4 @@ void APM_Compass_Class::SetOrientation(int newOrientation)
|
||||||
|
|
||||||
|
|
||||||
// make one instance for the user to use
|
// make one instance for the user to use
|
||||||
APM_Compass_Class APM_Compass;
|
APM_Compass_Class APM_Compass;
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
#ifndef APM_Compass_h
|
#ifndef APM_Compass_h
|
||||||
#define APM_Compass_h
|
#define APM_Compass_h
|
||||||
|
|
||||||
#include <AP_Math.h>
|
|
||||||
|
|
||||||
#define APM_COMPASS_COMPONENTS_UP_PINS_BACK 0
|
#define APM_COMPASS_COMPONENTS_UP_PINS_BACK 0
|
||||||
#define APM_COMPASS_COMPONENTS_UP_PINS_LEFT 1
|
#define APM_COMPASS_COMPONENTS_UP_PINS_LEFT 1
|
||||||
#define APM_COMPASS_COMPONENTS_UP_PINS_FORWARD 2
|
#define APM_COMPASS_COMPONENTS_UP_PINS_FORWARD 2
|
||||||
|
@ -33,4 +31,4 @@ class APM_Compass_Class
|
||||||
|
|
||||||
extern APM_Compass_Class APM_Compass;
|
extern APM_Compass_Class APM_Compass;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue