test program

Dependencies:   LSM9DS1_Library2 MotorV2 SRF05 Tracker2 mbed nRF24L01P

Fork of DUMP_TRUCK_SPR2017 by Terrabots

Revision:
0:6942f0e2198c
Child:
3:cd6e2d7c7c9c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DumpTruck.h	Tue Nov 01 20:13:57 2016 +0000
@@ -0,0 +1,39 @@
+#ifndef MBED_DUMP_TRUCK_H
+#define MBED_DUMP_TRUCK_H
+ 
+#include "mbed.h"
+
+class DumpTruck {
+public:
+    DumpTruck(int truckId);
+    void drive(); // Drive DC motors with a desired motor speed and distance
+    void stop();
+    void Calibrate();
+    //void RotateTo();
+    //void BedDown(); 
+    //void BedUp();   
+    //void raiseTo();
+    //void LowerBed();
+  
+protected:
+    int truckNumber;
+    float speed;                 // desired speed to drive the robot, a number between -1 and 1
+    float distance;              // input of desired distance to be traveled
+    float setTruckSpeed();       // set truck speed
+    float setTruckDistance();    // set distance to be traveled
+    //getBedAngle(); //Get data from Bed potentiometer, Hari is looking into the component for this
+    //getPivotAngle(double PivotAngle); //Get data from potentiometer
+    //SetPivotSpeed(double PivotSpeed); //Set arbitrary rotation of servo motor
+    //SetBedSpeed(); //Set arbitrary rotation of DC Motor
+    //bool GetBedUpperSwitch(); //Checks if bed is all the way up
+    //bool GetBedLowerSwitch(); //Checks if bed is all the way down
+    //bool SwitchState; //Switch state variable for Up and down bed functions
+    //float DesiredPivotAngle; // User Input of desired angle for the bed to be pivoted
+    //float DesiredBedAngle; //User Input of desired bed angle to be raised.
+    //float BedSpeed; //User input of desired speed for the dump truck's bed to rotate
+    //float PivotSpeed; //User input of desired speed for the dump truck to pivot its back at
+    
+    //bool isCalibrated;// returns 0 and 1 to check if the robot has been calibrated
+};
+
+#endif
\ No newline at end of file