Replies

  • Developer

    Presumably you want to use it for obstacle avoidance?  The problem with using the IR Sensors is that their range is very very short (about 1.5 meters) and the beam is also very narrow so it's not that great for obstacle avoidance especially on a full sized quad copter.

     

    In any case I ported over Jose's code for IR Sensors at the same time as the Sonar support was added.  It's not fully tested and I'm pretty sure it won't work without some minor code changes and updating the PID values so if you're not comfortable doing that I'm afraid you're out of luck.

     

    If yout still want to try and get it working here are some things that might help:

           - there is a wiki page covering the Sonar support here.

           - physically the IR sensors must be connected to the ADC pins on the back-right of the APM (AN5, AN4, AN3, AN2)

           - in the ArduCopterNG.pde you will need to ensure this line is uncommented:

                      #define IsRANGEFINDER

     

  • What do you mean by IR sensor?

    If you mean the Sharp IR sensors they wouldn't be much good due to the longest range being 1.5m.

    If you mean the IR sensors used by the 'Dancing quads' I believe it is actually an IR camera system and is hugely expensive.

    Either way both are not supported by the Arducopter code currently but you could easily change the code yourself to function with the Sharp sensor it would be very risky in use though given its more limited range than the supported sonar.

This reply was deleted.

Activity