mixer: minor refactoring to reduce header include dependencies

- avoid including <px4_defines.h> from the math headers
- avoid driver include <drivers/drv_mixer.h> from the mixer
This commit is contained in:
Beat Küng
2018-12-13 09:50:07 +01:00
parent 8bcf54688a
commit c659d2bcc2
20 changed files with 60 additions and 45 deletions
@@ -38,6 +38,7 @@
#include "ManualSmoothingXY.hpp"
#include <mathlib/mathlib.h>
#include <float.h>
#include <px4_defines.h>
using namespace matrix;
@@ -38,6 +38,7 @@
#include "StraightLine.hpp"
#include <mathlib/mathlib.h>
#include <float.h>
#include <px4_defines.h>
#define VEL_ZERO_THRESHOLD 0.001f // Threshold to compare if the target velocity is zero
#define DECELERATION_MAX 8.0f // The vehicles maximum deceleration TODO check to create param
@@ -36,6 +36,7 @@
#include <cstdio>
#include <float.h>
#include <math.h>
#include <px4_defines.h>
#include <mathlib/mathlib.h>