Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-dsp
Fork of mbed-os-example-blinky by
Diff: main.cpp
- 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;