my test code 2

Dependencies:   mbed-dev-f303 FastPWM3

Revision:
59:b41cbfa3b30e
Parent:
58:4f8f58ecb52a
diff -r 4f8f58ecb52a -r b41cbfa3b30e main.cpp
--- a/main.cpp	Wed Sep 22 09:30:48 2021 +0000
+++ b/main.cpp	Fri Sep 24 02:06:16 2021 +0000
@@ -542,9 +542,14 @@
     pc.attach(&serial_interrupt);                                               // attach serial interrupt
 
 
-    
+    int counter = 0;
     while(1) {
-        drv.print_faults(&can);
+        drv.print_faults(&can,&observer);
+        //if(counter++>=10)
+//        {
+//            counter = 0;
+//            printf("Temp:%.1f\n\r" , observer.temperature);
+//        }
         wait(.1);
         //printf("%.3f  %.3f\n\r" , observer.temperature, observer.q_in);
         if(controller.otw_flag){gpio.led->write(!gpio.led->read());}