Avinash Repaka / Mbed 2 deprecated Lab4_519

Dependencies:   mbed

Committer:
avinashr
Date:
Thu Mar 26 06:10:56 2015 +0000
Revision:
2:2cc70773996b
Child:
3:c3d716d6c6a7
Basic algorithm in place;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
avinashr 2:2cc70773996b 1 #include "mbed.h"
avinashr 2:2cc70773996b 2 #include "DCMotor.h"
avinashr 2:2cc70773996b 3 #include "LeftServoMotor.h"
avinashr 2:2cc70773996b 4 #include "RightServoMotor.h"
avinashr 2:2cc70773996b 5 #include "RequestQueue.h"
avinashr 2:2cc70773996b 6
avinashr 2:2cc70773996b 7 #ifndef GLOBALOBJECTS_H
avinashr 2:2cc70773996b 8 #define GLOBALOBJECTS_H
avinashr 2:2cc70773996b 9
avinashr 2:2cc70773996b 10 Serial pc(USBTX, USBRX);
avinashr 2:2cc70773996b 11 DCMotor dcMotor(p21,p17,p18);
avinashr 2:2cc70773996b 12 LeftServoMotor leftDoor(p22);
avinashr 2:2cc70773996b 13 RightServoMotor rightDoor(p23);
avinashr 2:2cc70773996b 14 RequestQueue queue;
avinashr 2:2cc70773996b 15 int currentFloor = 1;
avinashr 2:2cc70773996b 16
avinashr 2:2cc70773996b 17 void floorChosen(int);
avinashr 2:2cc70773996b 18 void doStopOperation();
avinashr 2:2cc70773996b 19 void floorReached(int);
avinashr 2:2cc70773996b 20 void floorDetected(int);
avinashr 2:2cc70773996b 21
avinashr 2:2cc70773996b 22 #endif