From 23a19c314b97afbb87440372adf078ef391cb554 Mon Sep 17 00:00:00 2001 From: johan9107 Date: Tue, 18 Oct 2016 17:01:11 +0200 Subject: [PATCH] PID changed postion of code PID changed postion of defines --- UAV-ControlSystem/inc/Flight/pid.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/UAV-ControlSystem/inc/Flight/pid.h b/UAV-ControlSystem/inc/Flight/pid.h index 81b633e..9b39664 100644 --- a/UAV-ControlSystem/inc/Flight/pid.h +++ b/UAV-ControlSystem/inc/Flight/pid.h @@ -26,16 +26,16 @@ #define XYZ_AXIS_COUNT 3 /*The maximum number of DOF that belongings to the PID*/ +#define PID_ID_GYRO 0 +#define PID_ID_ACCELEROMETER 1 +#define PID_ID_COMPASS 2 +#define PID_ID_BAROMETER 3 + #define THROTTLE 0 /*Index terms to the PID*/ #define ROLL 0 /*Index terms to the PID*/ #define PITCH 1 /*Index terms to the PID*/ #define YAW 2 /*Index terms to the PID*/ -#define PID_ID_GYRO 10 -#define PID_ID_ACCELEROMETER 11 -#define PID_ID_COMPASS 12 -#define PID_ID_BAROMETER 13 - /*Struct that belongs to a certain PID controller*/ typedef struct pidProfile_s {