Our team just have inertial sensor but we want to track the position of our robot. Can anyone help me
technically speaking - you can. Either by using the GPS sensor or just making use of the encoder in your motors.
but it might lack the precision that is required.
7 Likes
I think you can make a janky version with
xValue += cos(inertialAngle) * distanceMoved
yValue += sin(inertialAngle) * distanceMoved
3 Likes
We dont have GPS too :((
Just an add on, because this reply seems to be gaining traction.
This only works with a non-holomonic drive, assumes you don’t drift around turns (like you would with omni-wheels), and needs to be updated fast enough (about 5-10ms should be good) to account for dynamic angles.