Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed AQM1602 HMC6352 PID
setting/extern.h
- Committer:
- lilac0112_1
- Date:
- 2016-01-19
- Revision:
- 18:97eba56f82e4
- Parent:
- 17:61edad76efd7
- Child:
- 19:342da3a5a474
File content as of revision 18:97eba56f82e4:
#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 BusOut LineSignalHolder;
extern BusIn RawLineSignal;
extern BusIn HeldLineSignal;
//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_*/