by Visual Micro
2. May 2010 17:17
The visual studio object browser simplifies browsing of arduino/wiring libraries, custom libraries and your own code.

b668076a-5a0d-4402-839e-548aa3259803|2|5.0
by Visual Micro
2. May 2010 16:31
Editing any of the ardupilot versions using visual studio 2010 really shows off the quality of the ardupilot code. I love people who comment their code. Very neat!
And look how easy arduino project "navigation" is in Visual Studio, you can "Go To" the right place in the code.
I didn't know where the stabilize() function was but visual studio "Go To Definition" took me right to the attitude.pde. The intellisense in visual studio works best with well stuctured programs such as ArduPilot!
You need Visual Micro to make this work easily in 2010. It is free and quite new so the help system is a little confusing. Feel free to grab a copy.
The ardupilot code can't yet be compiled in visual studio due to the complex interaction between the multiple .pde files. However, Visual Micro adds a menu item to visual studio called "Open project in Arduino".which allows you to easily jump into the Arduino IDE to compile your mods. The next release of Visual Micro will allow compile and upload from within visual studio

742ad8e8-3a50-4e1e-a2c0-551eacb557bb|1|5.0
by Visual Micro
20. April 2010 17:05
The arduino ide allows libraries to be include in sketch programs using #include <libFolderName>. In normal programing this would refer to a <LibFileName.h> file in a library path. This does not work well for visual studio intellisense or build/compile.
Visual Micro solves this problem as follows
The #include in a .pde file is ignored and has no relevence in visual studio. The sole purpose of the #include library in a .pde maintains compatibility with the arduino ide
Visual Micro attaches the library files as files to a sketch project. When any code file is attached to a visual studio project it automatically is included in intellisense
When you add an arduino library to a visual studio project, Visual Micro modifies _vsaddin\include_libs.h with the path to the library.h file
The _vsaddin\include_libs.h file is also rebuilt when you build or compile a visual studio sketch project. This ensures any libraries you have manually attached to the project are included
Summary
The _vsaddin\include_libs.h is automatically maintained by visual micro and is used by the avr-gcc compiler to resolve references to arduino libraries
fe316be3-c027-4101-a39b-fd2fa17611e6|0|.0
by Visual Micro
11. April 2010 21:56
If Visual Studio 2005/2008 encounters a problem with an addin it will disable it by altering the addin xml.
To enable the addin again ensure the addin xml is in the "\document\visual studio x\addin\" folder, as per the installtion guide, and ensure the following settings are in the .addin xml
<LoadBehavior>5</LoadBehavior>
<CommandPreload>1</CommandPreload>
<CommandLineSafe>1</CommandLineSafe>
6930cb10-e250-464a-9346-a7eb0bad70a1|0|.0
by Visual Micro
11. April 2010 16:57
The "New" menu contains two very useful options enabling new files to be quickly added to an arduino visual studio project . This is a useful features if you often need to add a new .c and .h files to your projects.
note: To add files to your arduino projects in visual studio you can always use the standard visual studio "add file" or "add existing file" options.
Workflow Objective
Create a new .c file named MySubFile.c to the project (if it does not already exist) folder and link it to the project "Source Files" filter
Create a new .h file named MySubFile.h to the project folder (if it does not already exist) and link it to the project "Header Files" filter
Insert an #Include for MySubFile.h to the currently active source file (or .pde)
Open the new files for editing
How To
1. Choose to add .c/.h or .cpp/.h

2. Provide a name for the new files

3. Visual Micro does the rest!

553beb94-afb9-49cf-a793-7a17c5fe4000|0|.0
by Visual Micro
10. April 2010 22:21
Beta released 11th April 2010. Free version for private or student use is due for release end April 2010
Intellisense for the arduino is provided by Visual Studio. The 'Visual Micro' add-in simply helps to ensure that the files of a .pde project, the arduino core and arduino libraries are registered (or known) to the Visual Studio intellisense system.
Add-in preferences are set using the "Visual Studio Tools Options" window. When set the add-in will extend the Visual Studio menus and toolbars with additional controls to help you build arduino projects. (Note: all visual studio extensions created by the add-in are temporary)
The add-in is also able to retain board and port settings for each sketch (project). In most cases this means you will select a board and serial port once for the life of each project. That you can work on multiple projects at the same time, each project with its own board and port settings.
The add-in provides many other useful features.
Here are just a few...
> Automatic create new project from sketch
> Automatic link of all project items to intellisense
> Two way sketch compatibility with Arduino IDE
> Option to open the Arduino IDE loading the active visual micro studio project sketch.
> Automatic code completion (Visual Studio Style!)
> One click include of an Arduino Library
> Automatic LINK to arduino cores and libraries.
> When the arduino cores are updated your projects will automatically update (on next use)
> Standard copy/paste, highlight short cut keys
> All short cut keys user-definable
> Multi-instance Serial monitor enabling, for example, the output from two xbees to be monitored easily with auto port close if using the upload tools (see warning notes below about this!)
> Simple one click create of .c;.h with #include added to active .pde;.c or .cpp window.
> Code example helper makes it easy to create your own code examples for your projects.
> Examples/snippets are stored in an xml file in the same location of the code file.

Whilst not supported by Arduino or ourselves, the add-in allows you to switch on, at your own risk, "Compile and Upload" features. We have tried to ensure that these features are correct for Arduino and have been using our own boards without problem. We have found the Compile and Upload so useful we decided to leave it in the product (at your own risk!).
dfcc929d-432a-471e-bb7f-1f13ef915f48|0|.0