CatPot 2015-2016 / Mbed 2 deprecated CatPot_Main_T_2v00

Dependencies:   mbed AQM1602 HMC6352 PID

setting/extern.h

Committer:
lilac0112_1
Date:
2016-01-18
Revision:
17:61edad76efd7
Parent:
16:6900f47fa0b5
Child:
18:97eba56f82e4

File content as of revision 17:61edad76efd7:

#ifndef _EXTERN_H_
#define _EXTERN_H_

#include "def.h"

/*追加ライブラリ*/
#include <sstream>
#include "math.h"
#include "AQM1602.h"
#include "MPU6050_6Axis_MotionApps20.h"
#include "config.h"
#include "PID.h"

#include "adns_9800.h"
#include "mpu_6050.h"
#include "txrx.h"
#include "loop.h"
#include "loop2.h"
#include "switch.h"
#include "wordString2.h"

#include "PinConfig.h"
#include "LcdConfig.h"
#include "MathTable.h"
/*クラス*/

//pc(Computer)
extern RawSerial pc;
//led(main)
extern DigitalOut LED[4];
//line(bottom)
extern BusIn LineIn;
extern BusOut LineOut;
//ballcheck(bottom)
extern DigitalIn BallChecker;
//debug_switch(debug_board)
extern DigitalIn Sw[4];
//motor(main)
extern Serial motor;
//spi(main)
extern SPI spi;
extern DigitalOut spi_ss[4];
//bluetooth(debug_board)
extern RawSerial RN42;
extern DigitalOut RN42_Reset;
//lcd(debug_board)
extern AQM1602 Lcd;
//gyro(debug_board)
extern MPU6050 mpu;     // sda, scl pin
extern InterruptIn INT0;     // INT0 pin
//mouse(bottom)
extern adns_9800 mouse_sensor;
//solenoid(bottom)
extern DigitalOut kicker;

//Serial for motors
extern int speed[4];
extern string StringFIN;
//PID
extern PID pid;
extern Ticker pidupdate;
//for Serial
extern volatile uint8_t INdata[DATA_NUM], EXdata[DATA_NUM];
//for DataSet
extern Record data;
// for Time
extern Ticker Sw_ticker;
extern Timer t;
extern Ticker Duty[DUTY_NUM];
extern Timeout Stp;
extern double dutycycle[DUTY_NUM];

#endif /*_EXTERN_H_*/