Hi,  I am new to this Arduino programming.  Having install the arduino-0100-relax, I tried to upload Ardustation 2 version 2.0.10.     On my hardward, only the GREEN led lit with nothing shown on the LCD. I have the following warning messages. Please provide me with advice on what should I do next.

ArduStation2.cpp:56:24: error: FastSerial.h: No such file or directory
ArduStation2.cpp:57:25: error: GCS_MAVLink.h: No such file or directory
ArduStation2.cpp:61:55: error: AP_EEPROMB.h: No such file or directory
ArduStation2.pde:-1: error: variable or field 'gcs_handleMessage' declared void
ArduStation2.pde:-1: error: 'mavlink_message_t' was not declared in this scope
ArduStation2.pde:-1: error: 'msg' was not declared in this scope
ArduStation2.pde:-1: error: variable or field 'send_message' declared void
ArduStation2.pde:-1: error: 'mavlink_message_t' was not declared in this scope
ArduStation2.pde:-1: error: 'msg' was not declared in this scope
ArduStation2.pde:-1: error: 'AP_EEPROMB' does not name a type
ArduStation2.pde:-1: error: expected constructor, destructor, or type conversion before '(' token
ArduStation2.cpp: In function 'void loop()':
ArduStation2.pde:-1: error: call of overloaded 'write(int)' is ambiguous
C:\Documents and Settings\itadmin\Desktop\Ho\Arduino_1_Windows\arduino-1.0\libraries\LiquidCrystal/LiquidCrystal.h:82: note: candidates are: virtual size_t LiquidCrystal::write(uint8_t)
C:\Documents and Settings\itadmin\Desktop\Ho\Arduino_1_Windows\arduino-1.0\hardware\arduino\cores\arduino/Print.h:49: note:                 size_t Print::write(const char*)
ArduStation2.cpp: In function 'void SaveHomePosition()':
ArduStation2.pde:-1: error: 'eeprom_busy_wait' was not declared in this scope
ArduStation2.pde:-1: error: 'ee' was not declared in this scope
ArduStation2.pde:-1: error: 'eeprom_write_dword' was not declared in this scope
ArduStation2.cpp: In function 'void RestoreHomePosition()':
ArduStation2.pde:-1: error: 'eeprom_busy_wait' was not declared in this scope
ArduStation2.pde:-1: error: 'ee' was not declared in this scope
ArduStation2.pde:-1: error: 'eeprom_read_dword' was not declared in this scope
ArduStation2.cpp: In function 'void position_antenna()':
ArduStation2.pde:-1: error: 'ToDeg' was not declared in this scope
ArduStation2.cpp: At global scope:
ArduStation2.pde:-1: error: variable or field 'gcs_handleMessage' declared void
ArduStation2.pde:-1: error: 'mavlink_message_t' was not declared in this scope
ArduStation2.pde:-1: error: 'msg' was not declared in this scope

Thanks in advance.

Views: 247

Reply to This

Replies to This Discussion

Hi,

Looks like you are either missing the APM libraries or the arduino IDE cannot find them. You should make sure that you have the libraries subdirectory inside your sketchbook folder. If this is missing you may want to get the latest version from the git repo although the mavlink versions may be incompatible (maybe someone who actually knows the code could comment on that).

Cheers, good luck,

Andre

I haven't tried compiling Ardustation II against the Arduino-0100 relax yet.  There may be issues with this version of Arduino.  It definitely compiles with Arduino-0022-relax and that is what I would suggest for now. You errors definitely look like a library problem as Andre indicated. Also, 2.0.11 is a much better version of Ardustation II and I would suggest downloading it.  There are some issues with Mavlink in 2.0.10.  

I'm working on updating the code to the latest APM and ACM and I'll try using the Arduino-0100 to compile before the next release.  Unfortunately, this source is not in the GIT repository - I've never coordinated with the development team to get the source added so the latest version is at:

http://code.google.com/p/ardustation-ii/

Heino

Hi Andre and Heino,

   Thanks for your advices. As what Heino mentioned, I will download 0022-relax and 2.0.11 to try out. Thanks.

Ho

Many thanks for the posts guys, I took to working on my ArduStation after a bit of flying today, but have had very little luck. Your posts have helped me get to the point where I have worked through some of the errors you mentioned, but I am now getting another error:

"problem uploading to board:

Binary sketch size: 22678 bytes (of a 32256 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51"

I am using 022 Relax, should have the libraries in the right place. Any help would be greatly appreciated!

Just to add a bit of info:

- Green LED lights up but no buzzer (tried both DC power and power through FTDI)

- Tried loading code through FTDI and XBee: Same results (but flashing red led and blue led lit up a couple of times so FTDI cable and XBee seem to be working).

- Tried different boards in Arduino, as per other posts.

I've been pretty cautious about the soldering, verifying 3x the polarities and the UNO chip is oriented correctly. The power regulator is very hot (on a 3s lipo). 

RSS

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The third round was a reliablilty/aerial photography round for both planes and copters, which is now closed. Stay tuned for the next round, beginning soon.

A list of all T3 contests is here

 

© 2012   Created by Chris Anderson.

Badges  |  Report an Issue  |  Terms of Service