Hi ALL,
I am getting Error Messages when i compiled ardustation which i downloaded from https://code.google.com/p/ardustation-ii/downloads/list the version i compiled is Ardustation2_APM_ACM_2.0.11 and error i am getting is as follows
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
H:\arduino-1.0.1-rc2\libraries\LiquidCrystal/LiquidCrystal.h:82: note: candidates are: virtual size_t LiquidCrystal::write(uint8_t)
H:\arduino-1.0.1-rc2\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
What could be wrong ? what can i do to compile it without errors?
Thank you
chethan
Replies
got it i was able to compile ardustation. Now one last question Can i connect my ardustation to GCS like Mission Planner Or QGround Control? Or With out connecting to LCD Can i stream Data to my PC in Serial Monitor??
Thanks
chethan
This is a very old version from 2010 so it needs an earlier version of the Arduino environment to be compatible at the library level. I just tried downloading and compiling 2.0.11 with Arduino.021 and it worked.
Here is what I did:
Download the Arduino environment from here:
https://code.google.com/p/arduino/downloads/detail?name=arduino-002...
After extracting the Arduino zip file to a folder, run arduino.exe and user "preferences" to set the sketch book location to the directory containing just the Ardustation2 and library folders.
This step is important! - exit the Arduino environment after setting the new sketch folder location and run it again.
Select the Ardustation 2 Sketch.
Select the board in Arduino as (under Tools)
Arduino Pro mini (ATMega 328)
and the software should then compile.
Heino