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@19:342da3a5a474, 2016-01-21 (annotated)
- Committer:
- lilac0112_1
- Date:
- Thu Jan 21 07:11:08 2016 +0000
- Revision:
- 19:342da3a5a474
- Parent:
- 18:97eba56f82e4
- Child:
- 21:d69a8f3c76e1
Main part was reconstructed.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lilac0112_1 | 14:6f214ea5722e | 1 | #ifndef _EXTERN_H_ |
lilac0112_1 | 14:6f214ea5722e | 2 | #define _EXTERN_H_ |
lilac0112_1 | 14:6f214ea5722e | 3 | |
lilac0112_1 | 14:6f214ea5722e | 4 | #include "def.h" |
lilac0112_1 | 14:6f214ea5722e | 5 | |
lilac0112_1 | 14:6f214ea5722e | 6 | /*追加ライブラリ*/ |
lilac0112_1 | 14:6f214ea5722e | 7 | #include <sstream> |
lilac0112_1 | 16:6900f47fa0b5 | 8 | #include "math.h" |
lilac0112_1 | 14:6f214ea5722e | 9 | #include "AQM1602.h" |
lilac0112_1 | 14:6f214ea5722e | 10 | #include "MPU6050_6Axis_MotionApps20.h" |
lilac0112_1 | 14:6f214ea5722e | 11 | #include "config.h" |
lilac0112_1 | 16:6900f47fa0b5 | 12 | #include "PID.h" |
lilac0112_1 | 14:6f214ea5722e | 13 | |
lilac0112_1 | 14:6f214ea5722e | 14 | #include "adns_9800.h" |
lilac0112_1 | 14:6f214ea5722e | 15 | #include "mpu_6050.h" |
lilac0112_1 | 14:6f214ea5722e | 16 | #include "txrx.h" |
lilac0112_1 | 16:6900f47fa0b5 | 17 | #include "switch.h" |
lilac0112_1 | 14:6f214ea5722e | 18 | #include "wordString2.h" |
lilac0112_1 | 16:6900f47fa0b5 | 19 | |
lilac0112_1 | 19:342da3a5a474 | 20 | #include "setup.h" |
lilac0112_1 | 19:342da3a5a474 | 21 | #include "command.h" |
lilac0112_1 | 19:342da3a5a474 | 22 | #include "active.h" |
lilac0112_1 | 19:342da3a5a474 | 23 | #include "input.h" |
lilac0112_1 | 19:342da3a5a474 | 24 | #include "output.h" |
lilac0112_1 | 19:342da3a5a474 | 25 | #include "strategy.h" |
lilac0112_1 | 19:342da3a5a474 | 26 | |
lilac0112_1 | 16:6900f47fa0b5 | 27 | #include "PinConfig.h" |
lilac0112_1 | 16:6900f47fa0b5 | 28 | #include "LcdConfig.h" |
lilac0112_1 | 16:6900f47fa0b5 | 29 | #include "MathTable.h" |
lilac0112_1 | 14:6f214ea5722e | 30 | /*クラス*/ |
lilac0112_1 | 16:6900f47fa0b5 | 31 | |
lilac0112_1 | 16:6900f47fa0b5 | 32 | //pc(Computer) |
lilac0112_1 | 16:6900f47fa0b5 | 33 | extern RawSerial pc; |
lilac0112_1 | 16:6900f47fa0b5 | 34 | //led(main) |
lilac0112_1 | 16:6900f47fa0b5 | 35 | extern DigitalOut LED[4]; |
lilac0112_1 | 16:6900f47fa0b5 | 36 | //line(bottom) |
lilac0112_1 | 18:97eba56f82e4 | 37 | extern BusOut LineSignalHolder; |
lilac0112_1 | 18:97eba56f82e4 | 38 | extern BusIn RawLineSignal; |
lilac0112_1 | 18:97eba56f82e4 | 39 | extern BusIn HeldLineSignal; |
lilac0112_1 | 16:6900f47fa0b5 | 40 | //ballcheck(bottom) |
lilac0112_1 | 16:6900f47fa0b5 | 41 | extern DigitalIn BallChecker; |
lilac0112_1 | 16:6900f47fa0b5 | 42 | //debug_switch(debug_board) |
lilac0112_1 | 17:61edad76efd7 | 43 | extern DigitalIn Sw[4]; |
lilac0112_1 | 16:6900f47fa0b5 | 44 | //motor(main) |
lilac0112_1 | 16:6900f47fa0b5 | 45 | extern Serial motor; |
lilac0112_1 | 16:6900f47fa0b5 | 46 | //spi(main) |
lilac0112_1 | 16:6900f47fa0b5 | 47 | extern SPI spi; |
lilac0112_1 | 16:6900f47fa0b5 | 48 | extern DigitalOut spi_ss[4]; |
lilac0112_1 | 16:6900f47fa0b5 | 49 | //bluetooth(debug_board) |
lilac0112_1 | 16:6900f47fa0b5 | 50 | extern RawSerial RN42; |
lilac0112_1 | 16:6900f47fa0b5 | 51 | extern DigitalOut RN42_Reset; |
lilac0112_1 | 16:6900f47fa0b5 | 52 | //lcd(debug_board) |
lilac0112_1 | 16:6900f47fa0b5 | 53 | extern AQM1602 Lcd; |
lilac0112_1 | 16:6900f47fa0b5 | 54 | //gyro(debug_board) |
lilac0112_1 | 16:6900f47fa0b5 | 55 | extern MPU6050 mpu; // sda, scl pin |
lilac0112_1 | 16:6900f47fa0b5 | 56 | extern InterruptIn INT0; // INT0 pin |
lilac0112_1 | 16:6900f47fa0b5 | 57 | //mouse(bottom) |
lilac0112_1 | 16:6900f47fa0b5 | 58 | extern adns_9800 mouse_sensor; |
lilac0112_1 | 16:6900f47fa0b5 | 59 | //solenoid(bottom) |
lilac0112_1 | 16:6900f47fa0b5 | 60 | extern DigitalOut kicker; |
lilac0112_1 | 16:6900f47fa0b5 | 61 | |
lilac0112_1 | 16:6900f47fa0b5 | 62 | //Serial for motors |
lilac0112_1 | 16:6900f47fa0b5 | 63 | extern int speed[4]; |
lilac0112_1 | 16:6900f47fa0b5 | 64 | extern string StringFIN; |
lilac0112_1 | 16:6900f47fa0b5 | 65 | //PID |
lilac0112_1 | 16:6900f47fa0b5 | 66 | extern PID pid; |
lilac0112_1 | 16:6900f47fa0b5 | 67 | extern Ticker pidupdate; |
lilac0112_1 | 16:6900f47fa0b5 | 68 | //for Serial |
lilac0112_1 | 14:6f214ea5722e | 69 | extern volatile uint8_t INdata[DATA_NUM], EXdata[DATA_NUM]; |
lilac0112_1 | 16:6900f47fa0b5 | 70 | //for DataSet |
lilac0112_1 | 14:6f214ea5722e | 71 | extern Record data; |
lilac0112_1 | 19:342da3a5a474 | 72 | //for transition |
lilac0112_1 | 19:342da3a5a474 | 73 | extern Ticker Sw_ticker; |
lilac0112_1 | 19:342da3a5a474 | 74 | extern Timeout button; |
lilac0112_1 | 19:342da3a5a474 | 75 | extern bool state[4]; |
lilac0112_1 | 19:342da3a5a474 | 76 | extern uint8_t statesum, last_statesum; |
lilac0112_1 | 16:6900f47fa0b5 | 77 | // for Time |
lilac0112_1 | 14:6f214ea5722e | 78 | extern Timer t; |
lilac0112_1 | 14:6f214ea5722e | 79 | extern Ticker Duty[DUTY_NUM]; |
lilac0112_1 | 14:6f214ea5722e | 80 | extern Timeout Stp; |
lilac0112_1 | 14:6f214ea5722e | 81 | extern double dutycycle[DUTY_NUM]; |
lilac0112_1 | 14:6f214ea5722e | 82 | |
lilac0112_1 | 14:6f214ea5722e | 83 | #endif /*_EXTERN_H_*/ |