Tricopter Software

Codlinks & Mee_n_Mac

I,m back again. I’ve been going round and round trying to create a sketch using MultiWii V2.3 and Arduino 1.0.5-r2. I was trying to compile a sketch for sections 1 thru 8 of config_h_ of MW V2.3 by defining the setup and loop in the main.cpp tag of Arduino 1.0.5-r2 and I keep getting the error from the “;” after the “setup” in the main.cpp tag. What am I doing wrong?

Here is the main tag as I have changed it, and also the error that I get trying to compile the tag.

#include <Arduino.h>

int main(void)
{
	init();

#if defined(USBCON)
USBDevice.attach();
#endif;

setup();

 1	for (config_h_ ) {
  8  loop();  
if (serialEventRun) serialEventRun();	}

return 0;
}













C:\Documents and Settings\HP_Administrator\Desktop\arduino-1.0.5-r2\hardware\arduino\cores\arduino\main.cpp: In function 'int main()':
C:\Documents and Settings\HP_Administrator\Desktop\arduino-1.0.5-r2\hardware\arduino\cores\arduino\main.cpp:13: error: expected `;' before 'for'
[code]