9/12 AIL Regulate

Dependencies:   HCSR04_2 MPU6050_2 mbed SDFileSystem3

Fork of Autoflight2018_2 by 航空研究会

Committer:
HARUKIDELTA
Date:
Fri Sep 07 04:11:48 2018 +0000
Revision:
0:17f575135219
Child:
1:f383708a5a52
SBUS_READ

Who changed what in which revision?

UserRevisionLine numberNew contents of line
HARUKIDELTA 0:17f575135219 1 #ifndef FALFALLA_H
HARUKIDELTA 0:17f575135219 2 #define FALFALLA_H
HARUKIDELTA 0:17f575135219 3
HARUKIDELTA 0:17f575135219 4 #define SWITCH_CHECK 1400
HARUKIDELTA 0:17f575135219 5 #define NUMBER_FALFALLA 2 //何号機かを入れるとそれに応じて#if以下が変わって設定が変わる
HARUKIDELTA 0:17f575135219 6
HARUKIDELTA 0:17f575135219 7 static float g_kpELE=2.0;
HARUKIDELTA 0:17f575135219 8 static float g_kiELE=0.0;
HARUKIDELTA 0:17f575135219 9 static float g_kdELE=0.0;
HARUKIDELTA 0:17f575135219 10 static float g_kpRUD=3.0;
HARUKIDELTA 0:17f575135219 11 static float g_kiRUD=0.0;
HARUKIDELTA 0:17f575135219 12 static float g_kdRUD=0.0;
HARUKIDELTA 0:17f575135219 13
HARUKIDELTA 0:17f575135219 14 static float g_rightloopROLL=-17.0;
HARUKIDELTA 0:17f575135219 15 static float g_rightloopPITCH=-6.3;
HARUKIDELTA 0:17f575135219 16 static float g_leftloopROLL=16.0;
HARUKIDELTA 0:17f575135219 17 static float g_leftloopPITCH=-6.0;
HARUKIDELTA 0:17f575135219 18 static float g_gostraightROLL=2.0;
HARUKIDELTA 0:17f575135219 19 static float g_gostraightPITCH=-3.0;
HARUKIDELTA 0:17f575135219 20 static float g_takeoffTHR=1.0;
HARUKIDELTA 0:17f575135219 21 static float g_loopTHR=0.58;
HARUKIDELTA 0:17f575135219 22
HARUKIDELTA 0:17f575135219 23 static float g_rightloopROLLshort=-20.0;
HARUKIDELTA 0:17f575135219 24 static float g_rightloopPITCHshort=-7.0;
HARUKIDELTA 0:17f575135219 25 static float g_leftloopROLLshort=22.0;
HARUKIDELTA 0:17f575135219 26 static float g_leftloopPITCHshort=-6.0;
HARUKIDELTA 0:17f575135219 27
HARUKIDELTA 0:17f575135219 28 static float g_glideloopROLL = -5.0; //rewrite
HARUKIDELTA 0:17f575135219 29 static float g_glideloopPITCH = 0.0;
HARUKIDELTA 0:17f575135219 30
HARUKIDELTA 0:17f575135219 31 #if NUMBER_FALFALLA == 1 //1号機
HARUKIDELTA 0:17f575135219 32
HARUKIDELTA 0:17f575135219 33 const int16_t Trim_Falfalla[4] = {0,14,-100,-10};
HARUKIDELTA 0:17f575135219 34 const float ExpMax_Falfalla[4] = {100,115,100,89};
HARUKIDELTA 0:17f575135219 35 const float ExpMin_Falfalla[4] = {100,47,100,110};
HARUKIDELTA 0:17f575135219 36 const int8_t Reverce_falfalla[4] = {1,-1,1,1}; //Nutral:1 , Reverce:-1
HARUKIDELTA 0:17f575135219 37
HARUKIDELTA 0:17f575135219 38 #elif NUMBER_FALFALLA == 2 //2号機
HARUKIDELTA 0:17f575135219 39
HARUKIDELTA 0:17f575135219 40 const int16_t Trim_Falfalla[4] = {0,12,0,2}; //rewrite -100
HARUKIDELTA 0:17f575135219 41 const float ExpMax_Falfalla[4] = {100,115,100,103};
HARUKIDELTA 0:17f575135219 42 const float ExpMin_Falfalla[4] = {100,97,100,97};
HARUKIDELTA 0:17f575135219 43 const int16_t Reverce_falfalla[4] = {1,-1,1,-1}; //Nutral:1 , Reverce:-1
HARUKIDELTA 0:17f575135219 44
HARUKIDELTA 0:17f575135219 45
HARUKIDELTA 0:17f575135219 46 #endif
HARUKIDELTA 0:17f575135219 47
HARUKIDELTA 0:17f575135219 48
HARUKIDELTA 0:17f575135219 49 #endif /* ESTRELA_H_ */
HARUKIDELTA 0:17f575135219 50
HARUKIDELTA 0:17f575135219 51 /*
HARUKIDELTA 0:17f575135219 52 x軸回り ロール
HARUKIDELTA 0:17f575135219 53 y軸回り ピッチ
HARUKIDELTA 0:17f575135219 54 z軸回り ヨー
HARUKIDELTA 0:17f575135219 55 */