Renato Maues / DumpTruck

Dependencies:   Motor

Dependents:  

Files at this revision

API Documentation at this revision

Comitter:
tamashy
Date:
Thu Oct 06 19:48:07 2016 +0000
Commit message:
blah; ;

Changed in this revision

DumpTruck.cpp Show annotated file Show diff for this revision Revisions of this file
DumpTruck.h Show annotated file Show diff for this revision Revisions of this file
Motor.lib Show annotated file Show diff for this revision Revisions of this file
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