Can't verify ArduPilot Mega 1.02

When I try to verify my code I get these two error messages

ArduPilotMega:76: error: expected constructor, destructor, or type conversion before '(' token

ArduPilotMega:77: error: expected constructor, destructor, or type conversion before '(' token

 

And the arduino program marks the row 77:

// GENERAL VARIABLE DECLARATIONS

 

I have already seen others who had almost the same problem, but either there was no solution or it didn't solve my problem. So what have I done so far to see if it's working:

 

* I have reinstalled the source code 2 times, to C:\Users\Magnus Selin\Documents\Arduino

* I have tested the demo, uploads fine to my APM.

* I have tested the APM 2.012, uploads fine, starts to init and prints out the init sequence, but then just some jibberish on the serial window.

 

Why can't the ArduPilot Mega 1.02 be verified? Suggestions, please.

 

EDIT: I forgot to say that I am running windows under vmware on a mac. 

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Distributor
    Hello Magnus,

    Are you using arduino IDE 0022?
    If so try using an earlier release like 0020 and see if that works.

    Also how have you got your code stored? In one folder on the desktop or inside a folder inside a folder etc.

    Regards

    Martin
This reply was deleted.

Activity