Browse Source

AP_Math: fix for HAL_SITL rename

mission-4.1.18
Andrew Tridgell 10 years ago
parent
commit
eca675c556
  1. 2
      libraries/AP_Math/AP_Math.cpp
  2. 2
      libraries/AP_Math/examples/eulers/eulers.pde
  3. 2
      libraries/AP_Math/examples/location/location.pde
  4. 2
      libraries/AP_Math/examples/rotations/rotations.pde

2
libraries/AP_Math/AP_Math.cpp

@ -39,7 +39,7 @@ float fast_atan(float v) @@ -39,7 +39,7 @@ float fast_atan(float v)
return (v*(1.6867629106f + v2*0.4378497304f)/(1.6867633134f + v2));
}
#if HAL_CPU_CLASS < HAL_CPU_CLASS_75 || CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
#if HAL_CPU_CLASS < HAL_CPU_CLASS_75 || CONFIG_HAL_BOARD == HAL_BOARD_SITL
#define FAST_ATAN2_PIBY2_FLOAT 1.5707963f
// fast_atan2 - faster version of atan2
// 126 us on AVR cpu vs 199 for regular atan2

2
libraries/AP_Math/examples/eulers/eulers.pde

@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
#include <AP_Progmem.h>
#include <AP_Param.h>
#include <AP_HAL_AVR.h>
#include <AP_HAL_AVR_SITL.h>
#include <AP_HAL_SITL.h>
#include <AP_HAL_Empty.h>
#include <AP_HAL_PX4.h>
#include <AP_HAL_Linux.h>

2
libraries/AP_Math/examples/location/location.pde

@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
#include <AP_Declination.h>
#include <AP_HAL_AVR.h>
#include <AP_HAL_AVR_SITL.h>
#include <AP_HAL_SITL.h>
#include <AP_HAL_Empty.h>
#include <AP_HAL_Linux.h>
#include <AP_AHRS.h>

2
libraries/AP_Math/examples/rotations/rotations.pde

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
#include <AP_Progmem.h>
#include <AP_Param.h>
#include <AP_HAL_AVR.h>
#include <AP_HAL_AVR_SITL.h>
#include <AP_HAL_SITL.h>
#include <AP_HAL_Empty.h>
#include <AP_HAL_PX4.h>
#include <AP_HAL_Linux.h>

Loading…
Cancel
Save