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

Views: 316

Reply to This

Replies to This Discussion

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

Sid

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

Reply to Discussion

RSS

Groups

Season Two of the Trust Time Trial (T3) Contest 
A list of all T3 contests is here. The current round, the Vertical Horizontal one, is here

© 2018   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service