I am planing to make a function and ask the robot to turn x degree and move y meters like "MOVE(45degree, 100Meter)".
However, It may be possible to use digital compass for this as I heard that it is used to measure the rotation of objects like motors.
AWOL I agree with you, two functions sounds a better approach. As Mike Said, it is difficult to determine if it has turned or moved 100 meter. However, It may be possible to use digital compass for this as I heard that it is used to measure the rotation of objects like motors. the other challenge might be the obstacle. for example, if it turned 45 degrees and moved 10 meters and sees a wall, still need to travel 90 meters after passing the wall. so it looks for a way to pass the wall. any recommendations in this point? Kind regards
Look up "rotary encoders" and "Gray codes", as this is what is typically used to figure out distance and rotation. Well, you will have to figure out the obstacle avoidance and wall-following stuff. But you are nowhere unless you know how many turns a wheel has taken, or in what direction a steering mechanism has turned you.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16