
pid afstellen
Revision 0:3ca246e60129, committed 2017-10-31
- Comitter:
- JornJan
- Date:
- Tue Oct 31 13:37:28 2017 +0000
- Child:
- 1:6a1ffe0cb8bd
- Commit message:
- hopelijk wordt dit iets;
Changed in this revision
--- /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