Dependencies:   FastPWM MODSERIAL QEI mbed

Files at this revision

API Documentation at this revision

Comitter:
s1680897
Date:
Mon Oct 15 10:35:37 2018 +0000
Parent:
0:55255afaa7a4
Commit message:
assignment 1, geeft nog compile error

Changed in this revision

FastPWM.lib Show annotated file Show diff for this revision Revisions of this file
MODSERIAL.lib Show annotated file Show diff for this revision Revisions of this file
QEI.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 55255afaa7a4 -r a602cde74178 FastPWM.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FastPWM.lib	Mon Oct 15 10:35:37 2018 +0000
@@ -0,0 +1,1 @@
+http://os.mbed.com/users/Sissors/code/FastPWM/#c0b2265cff9c
diff -r 55255afaa7a4 -r a602cde74178 MODSERIAL.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MODSERIAL.lib	Mon Oct 15 10:35:37 2018 +0000
@@ -0,0 +1,1 @@
+http://os.mbed.com/users/AjK/code/MODSERIAL/#ae0408ebdd68
diff -r 55255afaa7a4 -r a602cde74178 QEI.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/QEI.lib	Mon Oct 15 10:35:37 2018 +0000
@@ -0,0 +1,1 @@
+http://os.mbed.com/users/aberk/code/QEI/#5c2ad81551aa
diff -r 55255afaa7a4 -r a602cde74178 main.cpp
--- a/main.cpp	Mon Oct 15 10:25:05 2018 +0000
+++ b/main.cpp	Mon Oct 15 10:35:37 2018 +0000
@@ -59,7 +59,7 @@
         if (u <= 0) 
         {
             motor1_richting = 0;
-            motor1_pwm.write(-AnalogVoltage1); //write Duty cycle 
+            motor1_pwm.write(-u); //write Duty cycle 
         }
         
         if (u >= 0)