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.
Diff: GlobalObjects.h
- Revision:
- 3:c3d716d6c6a7
- Parent:
- 2:2cc70773996b
- Child:
- 4:95fe80130442
--- a/GlobalObjects.h Thu Mar 26 06:10:56 2015 +0000 +++ b/GlobalObjects.h Thu Mar 26 23:41:44 2015 +0000 @@ -12,11 +12,15 @@ LeftServoMotor leftDoor(p22); RightServoMotor rightDoor(p23); RequestQueue queue; + int currentFloor = 1; +int movingDirection = 0; //1 for forward, -1 for reverse, 0 for stopping void floorChosen(int); void doStopOperation(); void floorReached(int); void floorDetected(int); +void moveForwad(); +void moveReverse(); #endif \ No newline at end of file