← General Discussion
ya@yousifastarabadi· 679 viewsin General Discussion

What does correctPos function do?

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.

Comment 2

Chris Annin

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.

ya

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

2 replies

Photos