i'm trying a programming a robot which has 2 wheels and body shape circular. both wheels have motor and encoder. i want to add a function to my program that when robot detect a obstacle turn left its axis(like left motor turn back and right motor turn forward) with random angle and go. How can i do? how can i a call function that bot left right motor and encoders works at same time?
i want to add a function to my program that when robot detect a obstacle turn left its axis(like left motor turn back and right motor turn forward) with random angle and go.
Well, you have our permission.
How can i do?
You have fingers don't you? Start typing.
how can i a call function that bot left right motor and encoders works at same time?
theFunctionToDoUsefulStuff();
Seriously, we need to see your existing code and know something about the hardware you currently have.