Luke Cartwright / Mbed 2 deprecated ELEC2645_Project_el18loc_nearlythere

Dependencies:   mbed

Revision:
9:f6ba53e355a0
Child:
10:258a1eca02cc
diff -r f305ea78b2b1 -r f6ba53e355a0 LUTs/LUTs_debug.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LUTs/LUTs_debug.h	Wed May 06 14:37:34 2020 +0000
@@ -0,0 +1,25 @@
+#ifndef LUTS_DEBUG_H
+#define LUTS_DEBUG_H
+
+/** Spaceship Test
+@brief Checks LUT values are correct
+@author Luke Cartwright, University of Leeds
+@date May 2020
+@return true if debug is passed
+*/
+
+bool sin_debug(int i, int expected_sin)
+{
+    // Objects
+    LUTs luts;
+
+    //method
+    luts.sin_wavetable();
+
+    if (sin_wavtable[i]==expected_sin) {
+        return (1);
+    } else {
+        return(0);
+    }
+}
+#endif