Elektronikprojekt Grupp 13 / Mbed OS test_fft_grp13

Dependencies:   mbed-dsp

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

Revision:
36:603944df2332
Parent:
35:935167115537
--- a/main.cpp	Wed Mar 29 13:14:20 2017 +0000
+++ b/main.cpp	Wed Mar 29 13:33:26 2017 +0000
@@ -11,3 +11,10 @@
     }
 }
 
+//Presuming that input is temp as a value and hum in procent.
+double speedofsound(double temp, double hum){
+   //Calculations done in Matlab
+   speed = 331.1190 + 0.6016*temp + 0.0126*hum;
+   return speed;
+}
+