mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Math: reorganize headers
Sort and add pragma once where needed.
This commit is contained in:
parent
6d3b491c02
commit
ab1fa4b435
@ -1,25 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include "definitions.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <limits>
|
||||
#include <stdint.h>
|
||||
#include <type_traits>
|
||||
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include <AP_Param/AP_Param.h>
|
||||
#include <cmath>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "definitions.h"
|
||||
#include "edc.h"
|
||||
#include "location.h"
|
||||
#include "matrix3.h"
|
||||
#include "polygon.h"
|
||||
#include "quaternion.h"
|
||||
#include "rotations.h"
|
||||
#include "vector2.h"
|
||||
#include "vector3.h"
|
||||
#include "matrix3.h"
|
||||
#include "quaternion.h"
|
||||
#include "polygon.h"
|
||||
#include "edc.h"
|
||||
#include <AP_Param/AP_Param.h>
|
||||
#include "location.h"
|
||||
|
||||
|
||||
// define AP_Param types AP_Vector3f and Ap_Matrix3f
|
||||
AP_PARAMDEFV(Vector3f, Vector3f, AP_PARAM_VECTOR3F);
|
||||
|
@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include <cmath>
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
|
||||
// Double precision math must be activated
|
||||
#if defined(DBL_MATH) && CONFIG_HAL_BOARD == HAL_BOARD_LINUX
|
||||
|
@ -16,6 +16,9 @@
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "vector2.h"
|
||||
|
||||
bool Polygon_outside(const Vector2l &P, const Vector2l *V, unsigned n);
|
||||
bool Polygon_complete(const Vector2l *V, unsigned n);
|
||||
|
@ -16,7 +16,7 @@
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
// these rotations form a full set - every rotation in the following
|
||||
// list when combined with another in the list forms an entry which is
|
||||
|
@ -51,12 +51,12 @@
|
||||
#include <cmath>
|
||||
#include <float.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
#if MATH_CHECK_INDEXES
|
||||
#include <assert.h>
|
||||
#endif
|
||||
|
||||
#include "rotations.h"
|
||||
|
||||
template <typename T>
|
||||
class Matrix3;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user