3D Robotics

IR Obstacle Avoidance

Hello all!

Im in the midst of an Arduino project for school and I of course I chose to work with the arducopter.

I had seen this post alittle while back. The demo used the following code.


I really like the idea and the simplicity of it, something that suited it to a good first major arduino project.

I have already gone ahead and built a new quadframe with all the mounted electronics (APM 2.5) for the project and now we're turning to the software and the hardware/software interface of the project.

Our plan with the code is to create a new flight mode in place of acro that mixes the control_roll and control_pitch with a new pitch and roll generated by the IR sensors. Wading through the code we're pretty sure this is the way to go but we wont know until we have it running.

We have run into a problem regarding the hardware software interface though. What are the actual callouts of the A0-A9 pins that you use when programming in arduino. I can't imagine calling them up in code by A0 etc and I havent been able to find any information regarding that. Ive also looked in the existing code but i can't seem to find the "lower-order commands" that reference the pin callouts.

Thanks for the help, and Cheers!

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • 3D Robotics

    Silly question, the pins are called as theyre named. woops. 

  • Moved to sensors

This reply was deleted.

Activity