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.
GlobalObjects.h
- Committer:
- avinashr
- Date:
- 2015-03-27
- Revision:
- 4:95fe80130442
- Parent:
- 3:c3d716d6c6a7
File content as of revision 4:95fe80130442:
#include "mbed.h"
#include "DCMotor.h"
#include "LeftServoMotor.h"
#include "RightServoMotor.h"
#include "RequestQueue.h"
#ifndef GLOBALOBJECTS_H
#define GLOBALOBJECTS_H
Serial pc(USBTX, USBRX);
DCMotor dcMotor(p21,p17,p18);
LeftServoMotor leftDoor(p22);
RightServoMotor rightDoor(p23);
RequestQueue queue;
int currentFloor = 1;
int movingDirection = 0; //1 for forward, -1 for reverse, 0 for stopping
int irFlag = 0;
void floorChosen(int);
void doStopOperation();
void floorReached(int);
void floorDetected(int);
void moveForwad();
void moveReverse();
#endif