Hello,
I have been working with the Arduino IDE for the past two months and finally got fed up with it enough to spend the time to switch IDEs. I'm developing on my own fork of the ArduPlane code on the APM2.
I have tried compiling on a current clone of the ardupilot code from the GitHub repository. The code compiles and will upload without issue. However, if I set the (Micro Debug) property to "Full" and the Remote Transport property to "FastSerial" as specified here:
http://diydrones.com/profiles/blogs/how-to-configure-apm-debugging, I get the following error during the debug compilation phase:
Compiling 'ArduPlane' for 'Arduino Mega 2560 HAL (Apm 2)'
Binary sketch size: 243,010 bytes (used 94% of a 258,048 byte maximum) (67.02 secs)
Compiling debug version of 'ArduPlane' for 'Arduino Mega 2560 HAL (Apm 2)'
ArduPlane.pde:In file included from
VM_DBG.h:284:33: error: 'byte' has not been declared
VM_DBG.h:285:33: error: 'byte' has not been declared
VM_DBG.h:286:33: error: 'byte' has not been declared
VM_DBG.h:287:33: error: 'byte' has not been declared
VM_DBG.h:288:33: error: 'byte' has not been declared
VM_DBG.h:289:33: error: 'byte' has not been declared
VM_DBG.h:290:33: error: 'byte' has not been declared
VM_DBG.h:296:33: error: 'byte' has not been declared
VM_DBG.h:297:33: error: 'byte' has not been declared
VM_DBG.h:299:33: error: 'byte' has not been declared
VM_DBG.h:300:33: error: 'byte' has not been declared
VM_DBG.h:305:9: error: 'byte' does not name a type
VM_DBG.h:306:42: error: 'byte' has not been declared
VM_DBG.h:307:33: error: 'byte' has not been declared
VM_DBG.h:In member function 'void VisualMicroDebug::setVariable(T&, int, int)'
VM_DBG.h:374:36: error: 'byte' was not declared in this scope
VM_DBG.h:In member function 'void VisualMicroDebug::setVariable(T&, int)'
VM_DBG.h:389:19: error: 'byte' was not declared in this scope
ArduPlane.pde:In function 'void setup()'
ArduPlane.pde:753:34: error: 'Serial' was not declared in this scope
Error compiling
I am wondering if there is something that I did wrong during the installation, or perhaps there is a setting that I have not taken into account to get debug mode working. I'm using Visual Studio 2010 Professional with the Visual Micro plugin. Any help or input to get this debug mode working would be most appreciated.