Obstacle avoidance car

I want to know the code to stop the car once it reaches its destination. Its an obstacle avoiding car.

That depends on a number of things, not least if which are:

  • What motors and motor driver you have, and how they're connected, so that you can control them to stop
  • What sensor/s you have and how they are programmed to declare that your robot has destinated.

Just brief it properly.

_pollymolly19:
Just brief it properly.

Ok, this is as good as anyone will be able to do without any further input from you:

if (destination)
   {
   stopTheCar();
   }

Thank you. We are creating maps and wanted to connect it to arduino is it possible?? And what Mapping software we can use that is compatible for arduino. We are using Arduino Uno.

_pollymolly19:
Thank you.

If you think my answer was really helpful, you're in deeper cr@p than you realise.

_pollymolly19:
We are creating maps and wanted to connect it to arduino is it possible??

It? What's "it"?

For anyone to help we will need to know exactly what you want to achieve in terms of performance, reliability etc as well as what hardware you intend to use. Do you have any experience with Arduino or microcontrollers? What programming experience do you have?