![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
as
Dependencies: HCSR04_2 MPU6050_2 mbed SDFileSystem3
config/falfalla.h@1:09a162f4f6ce, 2018-09-07 (annotated)
- Committer:
- TUATBM
- Date:
- Fri Sep 07 03:42:49 2018 +0000
- Revision:
- 1:09a162f4f6ce
- Parent:
- 0:813f5cd20cf1
a
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
HARUKIDELTA | 0:813f5cd20cf1 | 1 | #ifndef FALFALLA_H |
HARUKIDELTA | 0:813f5cd20cf1 | 2 | #define FALFALLA_H |
HARUKIDELTA | 0:813f5cd20cf1 | 3 | |
HARUKIDELTA | 0:813f5cd20cf1 | 4 | #define SWITCH_CHECK 1400 |
HARUKIDELTA | 0:813f5cd20cf1 | 5 | #define NUMBER_FALFALLA 2 //何号機かを入れるとそれに応じて#if以下が変わって設定が変わる |
HARUKIDELTA | 0:813f5cd20cf1 | 6 | |
HARUKIDELTA | 0:813f5cd20cf1 | 7 | static float g_kpELE=2.0; |
HARUKIDELTA | 0:813f5cd20cf1 | 8 | static float g_kiELE=0.0; |
HARUKIDELTA | 0:813f5cd20cf1 | 9 | static float g_kdELE=0.0; |
HARUKIDELTA | 0:813f5cd20cf1 | 10 | static float g_kpRUD=3.0; |
HARUKIDELTA | 0:813f5cd20cf1 | 11 | static float g_kiRUD=0.0; |
HARUKIDELTA | 0:813f5cd20cf1 | 12 | static float g_kdRUD=0.0; |
HARUKIDELTA | 0:813f5cd20cf1 | 13 | |
HARUKIDELTA | 0:813f5cd20cf1 | 14 | static float g_rightloopROLL=-17.0; |
HARUKIDELTA | 0:813f5cd20cf1 | 15 | static float g_rightloopPITCH=-6.3; |
HARUKIDELTA | 0:813f5cd20cf1 | 16 | static float g_leftloopROLL=16.0; |
HARUKIDELTA | 0:813f5cd20cf1 | 17 | static float g_leftloopPITCH=-6.0; |
HARUKIDELTA | 0:813f5cd20cf1 | 18 | static float g_gostraightROLL=2.0; |
HARUKIDELTA | 0:813f5cd20cf1 | 19 | static float g_gostraightPITCH=-3.0; |
HARUKIDELTA | 0:813f5cd20cf1 | 20 | static float g_takeoffTHR=1.0; |
HARUKIDELTA | 0:813f5cd20cf1 | 21 | static float g_loopTHR=0.58; |
HARUKIDELTA | 0:813f5cd20cf1 | 22 | |
HARUKIDELTA | 0:813f5cd20cf1 | 23 | static float g_rightloopROLLshort=-20.0; |
HARUKIDELTA | 0:813f5cd20cf1 | 24 | static float g_rightloopPITCHshort=-7.0; |
HARUKIDELTA | 0:813f5cd20cf1 | 25 | static float g_leftloopROLLshort=22.0; |
HARUKIDELTA | 0:813f5cd20cf1 | 26 | static float g_leftloopPITCHshort=-6.0; |
HARUKIDELTA | 0:813f5cd20cf1 | 27 | |
TUATBM | 1:09a162f4f6ce | 28 | static float g_glideloopROLL = -5.0; |
HARUKIDELTA | 0:813f5cd20cf1 | 29 | static float g_glideloopPITCH = 0.0; |
HARUKIDELTA | 0:813f5cd20cf1 | 30 | |
HARUKIDELTA | 0:813f5cd20cf1 | 31 | #if NUMBER_FALFALLA == 1 //1号機 |
HARUKIDELTA | 0:813f5cd20cf1 | 32 | |
HARUKIDELTA | 0:813f5cd20cf1 | 33 | const int16_t Trim_Falfalla[4] = {0,14,-100,-10}; |
HARUKIDELTA | 0:813f5cd20cf1 | 34 | const float ExpMax_Falfalla[4] = {100,115,100,89}; |
HARUKIDELTA | 0:813f5cd20cf1 | 35 | const float ExpMin_Falfalla[4] = {100,47,100,110}; |
HARUKIDELTA | 0:813f5cd20cf1 | 36 | const int8_t Reverce_falfalla[4] = {1,-1,1,1}; //Nutral:1 , Reverce:-1 |
HARUKIDELTA | 0:813f5cd20cf1 | 37 | |
HARUKIDELTA | 0:813f5cd20cf1 | 38 | #elif NUMBER_FALFALLA == 2 //2号機 |
HARUKIDELTA | 0:813f5cd20cf1 | 39 | |
HARUKIDELTA | 0:813f5cd20cf1 | 40 | const int16_t Trim_Falfalla[4] = {0,12,-100,2}; |
HARUKIDELTA | 0:813f5cd20cf1 | 41 | const float ExpMax_Falfalla[4] = {100,115,100,103}; |
HARUKIDELTA | 0:813f5cd20cf1 | 42 | const float ExpMin_Falfalla[4] = {100,97,100,97}; |
HARUKIDELTA | 0:813f5cd20cf1 | 43 | const int16_t Reverce_falfalla[4] = {1,-1,1,-1}; //Nutral:1 , Reverce:-1 |
HARUKIDELTA | 0:813f5cd20cf1 | 44 | |
HARUKIDELTA | 0:813f5cd20cf1 | 45 | |
HARUKIDELTA | 0:813f5cd20cf1 | 46 | #endif |
HARUKIDELTA | 0:813f5cd20cf1 | 47 | |
HARUKIDELTA | 0:813f5cd20cf1 | 48 | |
HARUKIDELTA | 0:813f5cd20cf1 | 49 | #endif /* ESTRELA_H_ */ |
HARUKIDELTA | 0:813f5cd20cf1 | 50 | |
HARUKIDELTA | 0:813f5cd20cf1 | 51 | /* |
HARUKIDELTA | 0:813f5cd20cf1 | 52 | x軸回り ロール |
HARUKIDELTA | 0:813f5cd20cf1 | 53 | y軸回り ピッチ |
HARUKIDELTA | 0:813f5cd20cf1 | 54 | z軸回り ヨー |
HARUKIDELTA | 0:813f5cd20cf1 | 55 | */ |