Arduino ArduPlane Build Bugs in Windows

Hi - 

I am not sure where to post this question so please let me know where I should post it if this is the wrong place.

I downloaded Arduino and ArduPlane.  I followed the instructions to set up Arduino.  I did the test build on the Examples->Basics->Blink and it builds correctly.  Then I tried to build ArduPlane and got the following error messages:

ArduPlane:239: error: new declaration 'uint8_t digitalRead(uint8_t)'

C:\Projects\arduino-1.0.4\hardware\arduino\cores\arduino/Arduino.h:100: error: ambiguates old declaration 'int digitalRead(uint8_t)'
ArduPlane:1288: error: expected constructor, destructor, or type conversion before 'int'
ArduPlane.pde: In function 'int SKETCH_MAIN(int, char* const*)':
ArduPlane:1288: error: 'OK' was not declared in this scope
compat.pde: In function 'uint8_t digitalRead(uint8_t)':
compat:33: error: new declaration 'uint8_t digitalRead(uint8_t)'
C:\Projects\arduino-1.0.4\hardware\arduino\cores\arduino/Arduino.h:100: error: ambiguates old declaration 'int digitalRead(uint8_t)'

The following are my notes:

Line 239 is actually a comment line in ArduPlane: 

// a pin for reading the receiver RSSI voltage. The scaling by 0.25

Line 100 in Arduino.h is: 

int digitalRead(uint8_t);

Line 1288 in ArduPlane is:

AP_HAL_MAIN();

What do I need to do to fix these errors and get a build to work with Arduino and ArduPlane?

What is the preferred environment for doing development on ArduPlane?

-- OS?

-- IDE?

I looked at CodeBase - it looked pretty good but, I am not sure how to get everything set up properly to do builds of ArduPlane and ArduCopter.

Any help on these things would be greatly appreciated.  I am looking forward to doing ArduPlane development.

Sid

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

Join diydrones

Email me when people reply –

Replies

  • No worries I moved it to the Autopilot/software section as that is where the code heads tend to congregate.  

  • Oh - I should mention that I am running on a Windows 7 PC.

    Sid

This reply was deleted.

Activity