Opis zapisałem w main.cpp

Dependencies:   mbed Motordriver

Files at this revision

API Documentation at this revision

Comitter:
kociol1994
Date:
Sat Mar 02 21:31:05 2019 +0000
Parent:
2:ef1505fe5b96
Commit message:
asfagdshg

Changed in this revision

main1.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r ef1505fe5b96 -r 5b09cb69d476 main1.cpp
--- a/main1.cpp	Sat Mar 02 18:59:32 2019 +0000
+++ b/main1.cpp	Sat Mar 02 21:31:05 2019 +0000
@@ -46,7 +46,7 @@
         }else if((X0)>150){
             X1=map(X0,150, 256, 0, 256);                    
         } 
-        X=X1/256;  
+        X=X1/512;  
         
             //ZMIENNA Y
         if(Y0>100 && Y0<150){  //uwzględniam drganie styków
@@ -56,7 +56,7 @@
         }else if((Y0)>150){
             Y1=map(Y0,150, 256, 0, 256);                    
         } 
-        Y=Y1/256;  
+        Y=Y1/512;  
                   
     //----------wyświetl diagnostyke---------
             /*