Luke Cartwright / Mbed 2 deprecated ELEC2645_Project_el18loc_nearlythere

Dependencies:   mbed

Revision:
29:207111ffd6e6
Parent:
19:08862f49cd9e
Child:
30:08cc4ec58d07
--- a/LUTs/LUTS.cpp	Mon May 25 10:46:02 2020 +0000
+++ b/LUTs/LUTS.cpp	Mon May 25 20:00:31 2020 +0000
@@ -88,12 +88,12 @@
     up_t=(pulsewidth*1024/100);
     up_tu=(uint16_t)up_t;
     for (int i=0; i<=up_tu; i++) {
-        pulse_wavtable[i]=65535;
+        pulse_wavtable[i]=58981;
         //printf("up itt = %d\n",i);
     }
 
     for (int i=up_tu+1; i<1024; i++) {
-        pulse_wavtable[i]=0;
+        pulse_wavtable[i]=6553;
         //printf("down itt = %d\n",i);
     }
 }