Init_motor function

In the Robotics Training when the obstacle avoiding robot is coded, there is a function called init_motor is used.

Why do we used the init_motor function? Couldn’t we just use the setup and Loop functions like in the First Robot ?

Hi @achaldubey27,

I am inviting @yeshwant.naik to help you out with this query. He will be replying to you by tomorrow EOD.

Do let me know in case you need further assistance.

for better understanding of the motor driver section it is written separately and called in the setup loop.It won’t make any difference if those commands are written in setup loop directly.