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
Comments
I finally got it by dragging the project to the class view workspace. Here's what it looks like before you zoom in.
I've tried to reproduce it and it keeps hangin up, but I pulled down file open arduino project, then I selected class view, then I pulled down project and selected show all files or it might have only been show all arduino files. To make the window big I just messed with the mouse, but I think there is a way in class diagram pulldowns to export the image and to make the diagram full screen. When I got lucky, the diagram was unreadable it was super tiny and I expanded it.
So Harry
How do I get that view that you have there?
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
Thank You very much, Fab. That did it. I'm not sure of everything I'm seeing, but it's there now.
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.
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.
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
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.
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....