robot

Dependencies:   FastPWM3 mbed

Revision:
26:955a1dfc2705
Parent:
24:5e18a87a0e95
Child:
28:ed9c1ca386fd
--- a/PositionSensor/PositionSensor.cpp	Sat Nov 05 15:49:11 2016 +0000
+++ b/PositionSensor/PositionSensor.cpp	Sun Nov 06 04:25:40 2016 +0000
@@ -30,7 +30,7 @@
  
     TIM2->CR1   = 0x0001;
     TIM2->SMCR  = TIM_ENCODERMODE_TI12;
-    TIM2->CCMR1 = 0xf1f1;
+    TIM2->CCMR1 = 0x0101;
     TIM2->CCMR2 = 0x0000;
     TIM2->CCER  = 0x0011;
     TIM2->PSC   = 0x0000;