a

Dependencies:   HCSR04_2 MPU6050_2 mbed SDFileSystem3

Fork of Autoflight2018_12 by 航空研究会

Committer:
TUATBM
Date:
Sat Sep 15 06:14:03 2018 +0000
Revision:
9:f6367b7fd7be
Parent:
1:f383708a5a52
a

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;
taknokolat 1:f383708a5a52 13 static float g_kpAIL=3.0;
taknokolat 1:f383708a5a52 14 static float g_kiAIL=0.0;
taknokolat 1:f383708a5a52 15 static float g_kdAIL=0.0;
HARUKIDELTA 0:17f575135219 16
HARUKIDELTA 0:17f575135219 17 static float g_rightloopROLL=-17.0;
HARUKIDELTA 0:17f575135219 18 static float g_rightloopPITCH=-6.3;
HARUKIDELTA 0:17f575135219 19 static float g_leftloopROLL=16.0;
HARUKIDELTA 0:17f575135219 20 static float g_leftloopPITCH=-6.0;
HARUKIDELTA 0:17f575135219 21 static float g_gostraightROLL=2.0;
HARUKIDELTA 0:17f575135219 22 static float g_gostraightPITCH=-3.0;
HARUKIDELTA 0:17f575135219 23 static float g_takeoffTHR=1.0;
HARUKIDELTA 0:17f575135219 24 static float g_loopTHR=0.58;
HARUKIDELTA 0:17f575135219 25
HARUKIDELTA 0:17f575135219 26 static float g_rightloopROLLshort=-20.0;
HARUKIDELTA 0:17f575135219 27 static float g_rightloopPITCHshort=-7.0;
HARUKIDELTA 0:17f575135219 28 static float g_leftloopROLLshort=22.0;
HARUKIDELTA 0:17f575135219 29 static float g_leftloopPITCHshort=-6.0;
HARUKIDELTA 0:17f575135219 30
HARUKIDELTA 0:17f575135219 31 static float g_glideloopROLL = -5.0; //rewrite
HARUKIDELTA 0:17f575135219 32 static float g_glideloopPITCH = 0.0;
HARUKIDELTA 0:17f575135219 33
HARUKIDELTA 0:17f575135219 34 #if NUMBER_FALFALLA == 1 //1号機
HARUKIDELTA 0:17f575135219 35
HARUKIDELTA 0:17f575135219 36 const int16_t Trim_Falfalla[4] = {0,14,-100,-10};
HARUKIDELTA 0:17f575135219 37 const float ExpMax_Falfalla[4] = {100,115,100,89};
HARUKIDELTA 0:17f575135219 38 const float ExpMin_Falfalla[4] = {100,47,100,110};
HARUKIDELTA 0:17f575135219 39 const int8_t Reverce_falfalla[4] = {1,-1,1,1}; //Nutral:1 , Reverce:-1
HARUKIDELTA 0:17f575135219 40
HARUKIDELTA 0:17f575135219 41 #elif NUMBER_FALFALLA == 2 //2号機
HARUKIDELTA 0:17f575135219 42
HARUKIDELTA 0:17f575135219 43 const int16_t Trim_Falfalla[4] = {0,12,0,2}; //rewrite -100
HARUKIDELTA 0:17f575135219 44 const float ExpMax_Falfalla[4] = {100,115,100,103};
HARUKIDELTA 0:17f575135219 45 const float ExpMin_Falfalla[4] = {100,97,100,97};
HARUKIDELTA 0:17f575135219 46 const int16_t Reverce_falfalla[4] = {1,-1,1,-1}; //Nutral:1 , Reverce:-1
HARUKIDELTA 0:17f575135219 47
HARUKIDELTA 0:17f575135219 48
HARUKIDELTA 0:17f575135219 49 #endif
HARUKIDELTA 0:17f575135219 50
HARUKIDELTA 0:17f575135219 51
HARUKIDELTA 0:17f575135219 52 #endif /* ESTRELA_H_ */
HARUKIDELTA 0:17f575135219 53
HARUKIDELTA 0:17f575135219 54 /*
HARUKIDELTA 0:17f575135219 55 x軸回り ロール
HARUKIDELTA 0:17f575135219 56 y軸回り ピッチ
HARUKIDELTA 0:17f575135219 57 z軸回り ヨー
HARUKIDELTA 0:17f575135219 58 */