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.
Revision 0:8ef7bf17d224, committed 2016-10-06
- Comitter:
- tamashy
- Date:
- Thu Oct 06 19:48:07 2016 +0000
- Commit message:
- blah; ;
Changed in this revision
diff -r 000000000000 -r 8ef7bf17d224 DumpTruck.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DumpTruck.cpp Thu Oct 06 19:48:07 2016 +0000 @@ -0,0 +1,26 @@ +#include "DumpTruck.h" +#include "mbed.h" +#include "Motor.h" + +Serial pc(USBTX, USBRX); + +DumpTruck::DumpTruck(Truck t) : _t(t) { + _t = 0;] + +void DumpTruck::drive() +{ + pc.printf("drive()"); + } +void DumpTruck::rotate(); +{ pc.printf("rotate()"); + } +void DumpTruck:BedDown(); +{ + pc.printf("BedDown()"); + } +void DumpTruck:LowerBed(); +{ + pc.printf("LowerBed()"); + } +void DumpTruck:raiseTo(angle); +{
diff -r 000000000000 -r 8ef7bf17d224 DumpTruck.h --- /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 + + +
diff -r 000000000000 -r 8ef7bf17d224 Motor.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Motor.lib Thu Oct 06 19:48:07 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/teams/Terrabots/code/Motor/#a8839a6b9e39