class
Diff: DumpTruck.h
- Revision:
- 0:8ef7bf17d224
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DumpTruck.h Thu Oct 06 19:48:07 2016 +0000 @@ -0,0 +1,28 @@ +#ifndef MBED_DUMP_TRUCK_H +#define MBED_DUMP_TRUCK_H + +#include "mbed.h" +#include "Motor.h" + +class DumpTruck { + + private: + int distance; + int rotation; + int angle; + DigitalOut t; + + public: + DumpTruck(Truck t); + void drive(); + void rotate(); + void BedDown(); + void BedUp(); + void raiseTo(angle); + bool BedSwitch(SwitchStatus); + + }; + #endif + + +