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:
- 7:f793a00a6e37
- Parent:
- 6:a243c013e519
- Child:
- 8:18392048e2cc
--- a/main.cpp Mon May 11 12:36:16 2020 +0000
+++ b/main.cpp Mon May 11 12:47:22 2020 +0000
@@ -160,31 +160,31 @@
while(1) {
- if(acq_position == 1){
- if (position_1 != position_old_1)
- {
- pc.printf("\n\rposition moteur 3 = %d :", position_3);
- //pc.printf("\n\rposition moteur 1 = %d\n\r mot recu :",position_1);
-
- /*for(i=0;i<=7;i++)
- {
- pc.printf("%X ",tata[i]);
- }*/
- position_old_1=position_1;
- }
- if (position_2 != position_old_2)
- {
- pc.printf("\n\rposition moteur 2 = %d :", position_2);
- position_old_2=position_2;
- }
- if (position_3 != position_old_3)
- {
- pc.printf("\n\rposition moteur 3 = %d :", position_3);
-
- position_old_3=position_3;
- }
+ if (position_1 != position_old_1)
+ {
+ pc.printf("\n\rposition moteur 1 = %d :", position_1);
+ //pc.printf("\n\rposition moteur 1 = %d\n\r mot recu :",position_1);
+
+ /*for(i=0;i<=7;i++)
+ {
+ pc.printf("%X ",tata[i]);
+ }*/
+ position_old_1 = position_1;
}
+ if (position_2 != position_old_2)
+ {
+ pc.printf("\n\rposition moteur 2 = %d :", position_2);
+
+ position_old_2 = position_2;
+ }
+ if (position_3 != position_old_3)
+ {
+ pc.printf("\n\rposition moteur 3 = %d :", position_3);
+
+ position_old_3 = position_3;
+ }
+
}