Elektronikprojekt Grupp 13 / Mbed OS test_fft_grp13

Dependencies:   mbed-dsp

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

main.cpp

Committer:
KlaraBengtsson
Date:
2017-03-29
Revision:
37:3bc968f47d9b
Parent:
35:935167115537
Child:
38:0eceb5feddc4

File content as of revision 37:3bc968f47d9b:

#include "mbed.h"

DigitalOut led1(LED1);

// main() runs in its own thread in the OS
int main() {
    while (true) {
        led1 = !led1;
        //ändrade värdet från 0.5 till 0.6
        wait(2);
    }
}

double calcDis(double t, double v){
    double s = t*v;
    return s;
    
}
double calcAng(double s, double D){
    double ang = asin(s/D);
    return ang;
}