//======================= // 速度関係 //======================= #define AD_V 80,80 直進時の速度 *#define AD_V_L 80 *#define AD_V_R 80 #define GET_AD_V 60,60 ポストゲット時の体当たり速度 #define BACK_V -80,-80 後退時の速度 #define POST_V 100,60 ポスト回り旋回時の速度 *#define POST_V_L 100 *#define POST_V_R 60 #define POST_V_RE 100,62 ポスト回り補正後の速度 #define LTURN_V -85,85 左自己回転時の速度 #define RTURN_V 85,-85 右自己回転時の速度 #define USS_RTURN_V 60,-60 超音波探索右自己回転時の速度 #define USS_LTURN_V -60,60 超音波探索左自己回転時の速度 #define HAD_V 57,55 補正中の体当たり速度 //======================= // スリープタイム関係 //======================= *#define TURN_SLP 600000 自己回転時のスリープタイム *#define BACK_SLP 1000000 後退時のスリープタイム #define STOP_SLP 500000 処理繋ぎのスリープタイム #define MINI_STOP_SLP 100 処理繋ぎのスリープタイム(MINI) #define HTURN_SLP 60000 補正量調整スリープタイム #define HBACK_SLP 300000 補正バック時のスリープタイム #define PSTART_SLP 100000 ポスト旋回開始時の直進スリープタイム #define IRS_W_SLP 500000 赤外線センサ選択時のスリープタイム #define IRS_SLP 200000 赤外線感知後のスリープタイム #define SENSA_SLP 100000 センサ系取得while周期タイム #define USS_SLP 50000 超音波センサ取得while周期タイム #define ENC_SLP 25000 エンコーダ取得while周期タイム #define GET_USS_SLP 150000 ポスト発見時の補正スリープ #define LS_SLP 100000 ラインセンサwhile周期タイム //======================= // 走行距離関係 //======================= #define HALF_TURN_DIS 25 自己回転半周距離 #define TURN_DIS 11 90°ターン距離 *#define UTURN_DIS 10 #define BACK_DIS 8 後退距離 #define POST_DIS 250 ポスト一周距離 #define HBACK_DIS 7 補正時後退距離 #define HTURN_DIS 5 補正時開始90°ターン距離 #define LS_BACK_DIS 20 LSモード時後退距離 #define LS_TURN_DIS 22 LSモード時180°回転距離