Elektronikprojekt Grupp 13 / Mbed OS test_fft_grp13

Dependencies:   mbed-dsp

Fork of mbed-os-example-blinky by Elektronikprojekt Grupp 13

Revision:
50:8ce5ed8e208b
Parent:
49:2632e3e89576
Child:
51:837137ab83ed
--- a/main.cpp	Thu Mar 30 10:41:17 2017 +0000
+++ b/main.cpp	Wed Apr 05 12:46:01 2017 +0000
@@ -1,4 +1,6 @@
 #include "mbed.h"
+#include "complex.h"
+#include "fft.h"
 
 DigitalOut led1(LED1);
 
@@ -14,6 +16,8 @@
 
 // main() runs in its own thread in the OS
 int main() {
+    
+   /* 
     STATE = IDLE;
     while (true) {
         switch (STATE) {
@@ -37,11 +41,18 @@
             
             case SEND:
             // code here
-            break;
-        
+            break;   
             }
-    }
+    }*/
+    
+    //testar complexa tal addering, verkar funka.
+    complex c1 = complex(1,2);
+    complex c2 = complex(2,3);
+    complex c3 = c1 + c2;
+ //   printf(c3);
 }
+
+
 //Calculating distanse between sound and camera
 double calcDis(double t, double v){
     double s = t*v;