Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MODSERIAL QEI mbed
Revision 9:80dad8d81c33, committed 2015-10-14
- Comitter:
- Technical_Muffin
- Date:
- Wed Oct 14 12:03:06 2015 +0000
- Parent:
- 8:e0fc6dd187a2
- Child:
- 10:2dd707673b3b
- Commit message:
- working 2 motor code with weird bug described in code;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Oct 11 14:48:36 2015 +0000
+++ b/main.cpp Wed Oct 14 12:03:06 2015 +0000
@@ -47,7 +47,6 @@
led3.write(1);
led1.write(0);
speed1.write(cycle);//write the speed to the motor
- speed1.period_us(100);//Set period of PWM to 100 us.
pc.printf("%f",speed1.read());//klopt nog niet, maar voorlopig zorgt het uitlezen ervoor dat het werkt.
direction1.write(motor1_dir);//turn motor CCW or CW
//motor CW = 0
@@ -68,7 +67,6 @@
led3.write(1);
led2.write(0);
speed2.write(cycle);//write the speed to the motor
- speed2.period_us(100);//Set period of PWM to 100 us.
pc.printf("%f",speed2.read());//klopt nog niet, maar voorlopig zorgt het uitlezen ervoor dat het werkt.
direction2.write(motor2_dir);//turn motor CCW or CW
//motor CW = 0