miseru

Dependencies:   ColorSensor HMC6352 Servo TextLCD mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

main.h

00001 #include "mbed.h"
00002 
00003 Timer timer2;
00004 
00005 extern double ultrasonicValue[4];
00006 extern uint16_t ultrasonicVal[4];
00007 extern void Ultrasonic(void);
00008 
00009 #define PID_CYCLE   0.06    //s
00010 //#define PID_CYCLE   0.1    //s
00011 
00012 HMC6352 compass(p28, p27);
00013 Serial pc(USBTX, USBRX);    // tx, rx 
00014 Ticker pidUpdata;
00015 Timer timer1;
00016 
00017 double inputPID = 180.0;