Luke Cartwright / Mbed 2 deprecated ELEC2645_Project_el18loc_nearlythere

Dependencies:   mbed

Revision:
30:08cc4ec58d07
Parent:
21:60f01b17b0a6
Child:
31:cfdb014ff086
--- a/LUTs/LUTs_debug.h	Mon May 25 20:00:31 2020 +0000
+++ b/LUTs/LUTs_debug.h	Tue May 26 10:17:47 2020 +0000
@@ -16,12 +16,11 @@
 * @returns true sin table value
 */ 
 bool sin_debug(int i, int expected_sin)
-    //method
     luts.sin_wavetable();
-
     if (sin_wavtable[i]==expected_sin) {
         return (1);
     } else {
+        printf("expected-%i__real-%u \n",expected_sin,sin_wavtable[i]);
         return(0);
     }
 }
@@ -32,7 +31,6 @@
 */ 
 bool tri_debug(int pulsewidth,int i, int expected_tri)
 {
-    //method
     luts.tri_wavetable(pulsewidth);
 
     if (tri_wavtable[i]==expected_tri) {
@@ -49,7 +47,6 @@
 */
 bool pulse_debug(int pulsewidth,int i, int expected_pulse)
 {
-    //method
     luts.pulse_wavetable(pulsewidth);
 
     if (pulse_wavtable[i]==expected_pulse) {