for ros

Dependencies:   QEI chair_BNO055 pid ros_lib_kinetic

Dependents:   wheelchaircontrolrealtimeROS

Fork of wheelchaircontrol by ryan lin

Revision:
0:fc0c4a184482
Child:
1:c0beadca1617
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wheelchair.h	Thu Jul 12 18:36:09 2018 +0000
@@ -0,0 +1,29 @@
+#ifndef wheelchair
+#define wheelchair
+
+#include "mbed.h"
+
+#define def (2.5f/3.3f)
+#define high 3.3f
+#define low (1.5f/3.3f)
+#define process .1
+#define xDir PA_4 //top right two pins
+#define yDir D13 //top left two pins
+
+class Wheelchair
+{
+public:
+    /*Wheelchair(PinName xPin, PinName yPin);
+      void move(float degrees);
+      void forward();
+      void backward();
+      void right();
+      void left();
+      void stop();
+
+    private:
+      AnalogOut* x;
+      AnalogOut* y;
+    */
+};
+#endif
\ No newline at end of file