Gerard Essink / Mbed 2 deprecated K9motoraansturing_copy

Dependencies:   BMT-K9-Regelaar Encoder MODSERIAL mbed

Fork of BMT-K9-Regelaar by First Last

Files at this revision

API Documentation at this revision

Comitter:
gerard1993
Date:
Tue Oct 15 14:10:02 2013 +0000
Parent:
2:3d4a843be2a9
Child:
4:9ecf57487c72
Commit message:
2e motor

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Oct 14 12:26:41 2013 +0000
+++ b/main.cpp	Tue Oct 15 14:10:02 2013 +0000
@@ -16,10 +16,10 @@
 int main() {
     //LOCAL VARIABLES 
     AnalogIn potmeter(PTC2);
-    Encoder motor1(PTD0,PTC9);//first pin on PTAx or PTDx
+    Encoder motor1(PTD5,PTC8);//first pin on PTAx or PTDx
     MODSERIAL pc(USBTX,USBRX);
-    PwmOut pwm_motor(PTA12);
-    DigitalOut motordir(PTD3);
+    PwmOut pwm_motor(PTA5);
+    DigitalOut motordir(PTD1);
     float setpoint;
     float pwm_to_motor;
     float setspeed;