usb実装中

Dependencies:   mbed MPU6050_2 HMC5883L_2 SDFileSystem3

Committer:
taknokolat
Date:
Mon Feb 11 10:58:57 2019 +0000
Revision:
11:8427ecccf07d
a;

Who changed what in which revision?

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