THE ANNIN ROBOTICS FORUM HAS MOVED TO A NEW COMMUNITY. 👉
What does correctPo...
 
Notifications
Clear all

What does correctPos function do?

3 Posts
2 Users
0 Reactions
53 Views
Avatar of ya
 ya
(@ya)
Eminent Member
Joined: 2 months ago
Posts: 22
Topic starter  

What does the correctPos ("CP" serial command) do? It seems to only get called on a collision, but I don't understand why it recalculates / resets the position based on the encoder only upon collision.



   
Quote
Chris Annin
(@chris-annin)
Member Admin
Joined: 2 months ago
Posts: 535
 

If a crash is detected then it uses the encoder value to reset or correct the position to what the encoder says it should be.



   
ReplyQuote
Avatar of ya
 ya
(@ya)
Eminent Member
Joined: 2 months ago
Posts: 22
Topic starter  

@chris-annin So you assume calibration is wrong if there is a crash and attempt to fix it?



   
ReplyQuote
Share:
Upload your Photo