sdカード完成

Dependencies:   mbed MPU6050_2 HMC5883L_2 SDFileSystem3

Committer:
taknokolat
Date:
Tue Feb 12 06:28:06 2019 +0000
Revision:
13:d8f49328c57f
a

Who changed what in which revision?

UserRevisionLine numberNew contents of line
taknokolat 13:d8f49328c57f 1 #ifndef FALFALLA_H
taknokolat 13:d8f49328c57f 2 #define FALFALLA_H
taknokolat 13:d8f49328c57f 3
taknokolat 13:d8f49328c57f 4 #define SWITCH_CHECK 1400
taknokolat 13:d8f49328c57f 5 #define NUMBER_FALFALLA 2 //何号機かを入れるとそれに応じて#if以下が変わって設定が変わる
taknokolat 13:d8f49328c57f 6
taknokolat 13:d8f49328c57f 7 static int servo_NEUTRAL_R = 1614;
taknokolat 13:d8f49328c57f 8 static int servo_NEUTRAL_L = 1621;
taknokolat 13:d8f49328c57f 9 static int servo_high_FORWARD_R = 1860;
taknokolat 13:d8f49328c57f 10 static int servo_high_FORWARD_L = 1860
taknokolat 13:d8f49328c57f 11 static int servo_slow_FORWARD_R = 1560;
taknokolat 13:d8f49328c57f 12 static int servo_slow_FORWARD_L = 1560;
taknokolat 13:d8f49328c57f 13 static int turntable_NEUTRAL = 1500;//カメラ台座のサーボ
taknokolat 13:d8f49328c57f 14 static int matchspeed = servo_NEUTRAL_R + 100; //カメラと方向を合わせるときの車輪の速度
taknokolat 13:d8f49328c57f 15 static int minfocus = 1200; //焦点合わせ用サーボの最小値
taknokolat 13:d8f49328c57f 16
taknokolat 13:d8f49328c57f 17 static float g_rightloopROLL=-17.0;
taknokolat 13:d8f49328c57f 18 static float g_rightloopROLL_approach=-17.0;
taknokolat 13:d8f49328c57f 19 static float g_rightloopPITCH=-6.3;
taknokolat 13:d8f49328c57f 20 static float g_rightloopPITCH_approach = -15.0;
taknokolat 13:d8f49328c57f 21 static float g_leftloopROLL=16.0;
taknokolat 13:d8f49328c57f 22 static float g_leftloopROLL_approach=16.0;
taknokolat 13:d8f49328c57f 23 static float g_leftloopPITCH=-6.0;
taknokolat 13:d8f49328c57f 24 static float g_leftloopPITCH_approach=-13.0;
taknokolat 13:d8f49328c57f 25 static float g_gostraightROLL=2.0;
taknokolat 13:d8f49328c57f 26 static float g_gostraightPITCH=-3.0;
taknokolat 13:d8f49328c57f 27 static float g_takeoffTHR=1.0;
taknokolat 13:d8f49328c57f 28 static float g_loopTHR=0.58;
taknokolat 13:d8f49328c57f 29
taknokolat 13:d8f49328c57f 30 static float g_rightloopROLLshort=-20.0;
taknokolat 13:d8f49328c57f 31 static float g_rightloopPITCHshort=-7.0;
taknokolat 13:d8f49328c57f 32 static float g_leftloopROLLshort=22.0;
taknokolat 13:d8f49328c57f 33 static float g_leftloopPITCHshort=-6.0;
taknokolat 13:d8f49328c57f 34
taknokolat 13:d8f49328c57f 35 static float g_glideloopROLL = -5.0; //rewrite
taknokolat 13:d8f49328c57f 36 static float g_glideloopPITCH = 0.0;
taknokolat 13:d8f49328c57f 37 static float g_autoonPITCH = -3.0;
taknokolat 13:d8f49328c57f 38
taknokolat 13:d8f49328c57f 39 static int g_rightloopRUD = 1500;
taknokolat 13:d8f49328c57f 40 static int g_rightloopRUD_approach=1500;
taknokolat 13:d8f49328c57f 41 static int g_rightloopshortRUD = 1500;
taknokolat 13:d8f49328c57f 42 static int g_leftloopRUD = 1500;
taknokolat 13:d8f49328c57f 43 static int g_leftloopRUD_approach = 1710;
taknokolat 13:d8f49328c57f 44 static int g_leftloopshortRUD = 1500;
taknokolat 13:d8f49328c57f 45 static int g_glideloopRUD = 1500;
taknokolat 13:d8f49328c57f 46
taknokolat 13:d8f49328c57f 47 static int g_AIL_L_correctionrightloop = 0;
taknokolat 13:d8f49328c57f 48 static int g_AIL_L_correctionrightloopshort = 0;
taknokolat 13:d8f49328c57f 49 static int g_AIL_L_correctionleftloop = 0;
taknokolat 13:d8f49328c57f 50 static int g_AIL_L_correctionleftloopshort = 0;
taknokolat 13:d8f49328c57f 51
taknokolat 13:d8f49328c57f 52
taknokolat 13:d8f49328c57f 53 #if NUMBER_FALFALLA == 1 //1号機
taknokolat 13:d8f49328c57f 54 const int8_t Reverce_falfalla[4] = {1,-1,1,1}; //Nutral:1 , Reverce:-1
taknokolat 13:d8f49328c57f 55
taknokolat 13:d8f49328c57f 56 #elif NUMBER_FALFALLA == 2 //2号機
taknokolat 13:d8f49328c57f 57 const int16_t Reverce_falfalla[4] = {1,-1,1,-1}; //Nutral:1 , Reverce:-1
taknokolat 13:d8f49328c57f 58
taknokolat 13:d8f49328c57f 59 #endif
taknokolat 13:d8f49328c57f 60
taknokolat 13:d8f49328c57f 61
taknokolat 13:d8f49328c57f 62 #endif /* ESTRELA_H_ */
taknokolat 13:d8f49328c57f 63
taknokolat 13:d8f49328c57f 64 /*
taknokolat 13:d8f49328c57f 65 x軸回り ロール
taknokolat 13:d8f49328c57f 66 y軸回り ピッチ
taknokolat 13:d8f49328c57f 67 z軸回り ヨー
taknokolat 13:d8f49328c57f 68 */