EMG driven robot which shoots elastic bands
Fork of ROBOBIRDS_FINAL by
main.cpp
- Committer:
- Fernon
- Date:
- 2015-09-23
- Revision:
- 0:5a5f417fa1b2
- Child:
- 1:bb11e38dda43
File content as of revision 0:5a5f417fa1b2:
#include "mbed.h" #include "QEI.h" //Motor 2 D4 en D5 //D4 direction //D5 PWM DigitalOut Direction(D4); //1 = CCW - 0 = CW PwmOut PowerMotor(D5); // hier nog signaal encoder int main() { while (true) { for (int n = 0; n < 2; n++) { Direction.write(0); PowerMotor.write(0.5); wait (1); Direction.write(1); wait (1); } PowerMotor.write(0); return (0); } }