pid afstellen

Dependencies:   QEI mbed

Files at this revision

API Documentation at this revision

Comitter:
JornJan
Date:
Tue Oct 31 13:37:28 2017 +0000
Child:
1:6a1ffe0cb8bd
Commit message:
hopelijk wordt dit iets;

Changed in this revision

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
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/QEI.lib	Tue Oct 31 13:37:28 2017 +0000
@@ -0,0 +1,1 @@
+http://os.mbed.com/users/aberk/code/QEI/#5c2ad81551aa
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Oct 31 13:37:28 2017 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+#include "Serial.h"
+#include "QEI.h"
+#include "math.h"
+
+
+Serial      pc(USBTX, USBRX);        //Serial PC connectie
+QEI encoder1(D13, D12, NC, 32);       //encoder instellen
+QEI encoder2(D11, D10, NC, 32);
+
+DigitalOut  motor1DirectionPin(D4);  //Motorrichting op D4 (connected op het bord)
+PwmOut      motor1MagnitudePin(D5);  //Motorkracht op D5 (connected op het bord)
+DigitalOut  motor2DirectionPin(D7);  //Motorrichting op D4 (connected op het bord)
+PwmOut      motor2MagnitudePin(D6);  //Motorkracht op D5 (connected op het bord)
+
+Ticker      controller;                //toets sample tijd
+
+int main()
+{
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Oct 31 13:37:28 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/fb8e0ae1cceb
\ No newline at end of file