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.
Diff: main.cpp
- Revision:
- 3:b9e2c7d52953
- Parent:
- 2:5ec7af981b32
- Child:
- 4:1b4885298ade
--- a/main.cpp Wed Oct 14 12:34:25 2015 +0000 +++ b/main.cpp Wed Oct 14 12:47:44 2015 +0000 @@ -23,7 +23,7 @@ // calculating pulses to rotations in degree. const double pulses_per_revolution = 4200 ;//8400 counts is aangegeven op de motor for x4. 10 - 30 counts oveshoot. for moter 1(tape)! Motor 2 almost the same(nice) const double resolution = pulses_per_revolution / 360; -double Rotation = 2; // rotation in degree +double Rotation = -2; // rotation in degree double movement = Rotation * 360 * resolution; // times 360 to make Rotations degree. // defining flags