Browse Source

AP_Math: fix compile errors example sketches

mission-4.1.18
rmackay9 12 years ago
parent
commit
d6324b3964
  1. 9
      libraries/AP_Math/examples/eulers/eulers.pde
  2. 7
      libraries/AP_Math/examples/location/location.pde
  3. 8
      libraries/AP_Math/examples/rotations/rotations.pde

9
libraries/AP_Math/examples/eulers/eulers.pde

@ -11,24 +11,27 @@ FastSerialPort(Serial, 0); @@ -11,24 +11,27 @@ FastSerialPort(Serial, 0);
#ifdef DESKTOP_BUILD
// all of this is needed to build with SITL
#include <SPI.h>
#include <I2C.h>
#include <DataFlash.h>
#include <APM_RC.h>
#include <GCS_MAVLink.h>
#include <Arduino_Mega_ISR_Registry.h>
#include <AP_PeriodicProcess.h>
#include <AP_ADC.h>
#include <SPI.h>
#include <I2C.h>
#include <AP_Baro.h>
#include <AP_Compass.h>
#include <AP_GPS.h>
#include <AP_Declination.h>
#include <AP_Semaphore.h>
#include <Filter.h>
#include <SITL.h>
Arduino_Mega_ISR_Registry isr_registry;
AP_Baro_BMP085_HIL barometer;
AP_Compass_HIL compass;
#endif
#include <AP_Declination.h>
static float rad_diff(float rad1, float rad2)

7
libraries/AP_Math/examples/location/location.pde

@ -9,6 +9,8 @@ @@ -9,6 +9,8 @@
#ifdef DESKTOP_BUILD
// all of this is needed to build with SITL
#include <SPI.h>
#include <I2C.h>
#include <DataFlash.h>
#include <APM_RC.h>
#include <GCS_MAVLink.h>
@ -18,11 +20,10 @@ @@ -18,11 +20,10 @@
#include <AP_Baro.h>
#include <AP_Compass.h>
#include <AP_GPS.h>
#include <AP_Declination.h>
#include <AP_Semaphore.h>
#include <Filter.h>
#include <SITL.h>
#include <I2C.h>
#include <SPI.h>
#include <AP_Declination.h>
Arduino_Mega_ISR_Registry isr_registry;
AP_Baro_BMP085_HIL barometer;
AP_Compass_HIL compass;

8
libraries/AP_Math/examples/rotations/rotations.pde

@ -11,6 +11,8 @@ FastSerialPort(Serial, 0); @@ -11,6 +11,8 @@ FastSerialPort(Serial, 0);
#ifdef DESKTOP_BUILD
// all of this is needed to build with SITL
#include <SPI.h>
#include <I2C.h>
#include <DataFlash.h>
#include <APM_RC.h>
#include <GCS_MAVLink.h>
@ -20,13 +22,15 @@ FastSerialPort(Serial, 0); @@ -20,13 +22,15 @@ FastSerialPort(Serial, 0);
#include <AP_Baro.h>
#include <AP_Compass.h>
#include <AP_GPS.h>
#include <AP_Declination.h> // ArduPilot Mega Declination Helper Library
#include <AP_Semaphore.h>
#include <Filter.h>
#include <SITL.h>
Arduino_Mega_ISR_Registry isr_registry;
AP_Baro_BMP085_HIL barometer;
AP_Compass_HIL compass;
#endif
#include <AP_Declination.h> // ArduPilot Mega Declination Helper Library
// standard rotation matrices (these are the originals from the old code)
#define MATRIX_ROTATION_NONE Matrix3f(1, 0, 0, 0, 1, 0, 0,0, 1)

Loading…
Cancel
Save