robot

Dependencies:   FastPWM3 mbed

Revision:
77:66a9b53131f8
Parent:
76:c66014e50384
--- a/main.cpp	Fri Feb 24 21:38:03 2017 +0000
+++ b/main.cpp	Sat Feb 25 00:41:39 2017 +0000
@@ -158,7 +158,7 @@
         
 
 extern "C" void TIM1_UP_TIM10_IRQHandler(void) {
-    int start_state = io.throttle_in->state();
+    //int start_state = io.throttle_in->state();
     if (TIM1->SR & TIM_SR_UIF ) {
         ADC1->CR2  |= 0x40000000; 
         volatile int delay;
@@ -168,8 +168,8 @@
         commutate();
     }
     TIM1->SR = 0x00;
-    int end_state = io.throttle_in->state();
-    if (start_state != end_state) io.throttle_in->block();
+    //int end_state = io.throttle_in->state();
+    //if (start_state != end_state) io.throttle_in->block();
 }
 
 int main() {