Graphical Display of APM Program Structure

The Class Diagram features of Microsoft Visual Studio provide the facility to show graphically any area of an Apm program. This is an ideal way for new users to understand how ArduPilot and ArduCopter code is designed. 

Reference

Microsoft Visual Studio provides a 100% compatible development environment for Arduino and Apm. It is also used to create the diydrones GCS. The Arduino plugin for Visual Studio is free and available from here, Visual Studio can be downloaded for free via here

Views: 6149

Comment by Dennis Baldwin on September 17, 2012 at 8:22pm

This is pretty amazing. I had no idea that there was a Visual Studio plugin for Arduino dev. Thanks for the tip and it looks like I may have to fire up my Windows VM again :)

Comment by bGatti on September 17, 2012 at 9:06pm

yeah cool 

Comment by Nikos Karamanolis on September 18, 2012 at 10:17am

Great to hear that... Its something missing from the Arduino IDE....

Had tried it for a couple of test sketches and compilation works out of the box.. no hasle with configuring tool chains and all that stuff for Netbeans....

Comment by Harry on September 18, 2012 at 5:18pm

I got the arduino add on to work, but it wont compile arducopter 2.7.3 and that's why my programmer career never was.  I dont think it is aware of the AP_libraries because it gives a ton of errors about classes not defined.  When I try to view all the classes it only knows about GCS Mavlink class.

Comment by AVS on September 18, 2012 at 6:35pm

Hi Harry, Does it compile in the Arduino IDE? Setup for Visual Studio is the same as for Arduino. You must also be using Arduino 1.0.1

Comment by Harry on September 18, 2012 at 7:35pm

Thanks, Fab, I have 1.0.1 and No it wont compile there either.  I put the arducopter directory in the default arduino directory as per the arduino 1.0.1 preferences, no better. 

Comment by AVS on September 18, 2012 at 7:43pm

If you are using the Arduino default folders (not recommended by diyd but it is what I do) then you need to copy the folders from "ArduCopter\Libraries" to "My Documents\Arduino\Libraries". When it works in Arduino it will work in Visual Studio :) Look forward to hearing how you get on.

Comment by Harry on September 18, 2012 at 8:29pm

Thank You very much, Fab.  That did it.  I'm not sure of everything I'm seeing, but it's there now.

Comment by AVS on September 18, 2012 at 8:45pm

Woweee, image looks good even if it doesn't mean much :) I forgot to say that if you click "Project>Show all arduino files" the library sources will be toggled into your project. They are easier to drag onto an empty class diagram (or right click and select diagram) when included in the actual project.

Thanks for letting me know it is working and thanks to others for the comments

Comment by Troy Reabe on September 18, 2012 at 10:22pm

So Harry

How do I get that view that you have there?

Comment

You need to be a member of DIY Drones to add comments!

Join DIY Drones

© 2020   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service