Fixed Sonar

Dependencies:   C12832 Servo mbed-rtos-edited mbed

Fork of NervousPuppy by Sean Doyle

Files at this revision

API Documentation at this revision

Comitter:
SeanDoyle
Date:
Mon Jan 12 19:05:08 2015 +0000
Child:
1:8fe6802d6971
Commit message:
init;

Changed in this revision

mbed-rtos.lib Show annotated file Show diff for this revision Revisions of this file
mbed.lib Show annotated file Show diff for this revision Revisions of this file
nervousPuppy.cpp Show annotated file Show diff for this revision Revisions of this file
nervousPuppy.h Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-rtos.lib	Mon Jan 12 19:05:08 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/mbed_official/code/mbed-rtos/#9387d4c49609
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.lib	Mon Jan 12 19:05:08 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/screamer/code/mbed/#aff670d0d510
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nervousPuppy.cpp	Mon Jan 12 19:05:08 2015 +0000
@@ -0,0 +1,13 @@
+#include "nervousPuppy.h"
+
+nervousPuppy::nervousPuppy(){
+    
+}
+
+
+    
+int main() {
+    while(1) {
+
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nervousPuppy.h	Mon Jan 12 19:05:08 2015 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+#include <iostream>
+
+#define Cos(a) cos(PI/180*(a))
+#define Sin(a) sin(PI/180*(a))
+#define PI 3.1415926
+
+using namespace std;
+
+static const float LONELY = 5.0f;
+static const float SCARED = 0.5f;
+
+class nervousPuppy{
+    public:
+        nervousPuppy();
+        
+        bool isLonely();
+        bool isScared();
+        
+        float getPlayerDistance();
+        void setPlayerDistance();
+                
+    private:
+        float playerDistance;
+
+};
\ No newline at end of file