I'm getting these compile errors from the latest git version, as far as I know all the libraries are there so not sure why these errors would appear. Anyone with greater experience help me out?
In file included from ArduCopter.cpp:93:
GCS.h:129: error: 'ParamToken' in class 'AP_Param' does not name a type
ArduCopter.cpp: In function 'void update_trig()':
ArduCopter:1850: error: 'safe_sqrt' was not declared in this scope
ArduCopter.cpp: In member function 'void GCS_MAVLINK::handleMessage(mavlink_message_t*)':
GCS_Mavlink:1165: error: '_queued_parameter_token' was not declared in this scope
ArduCopter.cpp: In member function 'uint16_t GCS_MAVLINK::_count_parameters()':
GCS_Mavlink:1648: error: 'ParamToken' is not a member of 'AP_Param'
GCS_Mavlink:1648: error: expected `;' before 'token'
GCS_Mavlink:1650: error: 'token' was not declared in this scope
ArduCopter.cpp: In member function 'void GCS_MAVLINK::queued_param_send()':
GCS_Mavlink:1678: error: no matching function for call to 'AP_Param::copy_name(char [15], unsigned int, int)'
G:\My Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Param.h:95: note: candidates are: void AP_Param::copy_name(char*, size_t)
GCS_Mavlink:1687: error: '_queued_parameter_token' was not declared in this scope
ArduCopter.cpp: In function 'void Log_Write_Performance()':
Log:650: error: 'class AP_DCM' has no member named 'renorm_range_count'
ArduCopter.cpp: In function 'void calc_loiter(int, int)':
navigation:150: error: 'class AC_PID' has no member named 'set_integrator'
navigation:151: error: 'class AC_PID' has no member named 'set_integrator'
ArduCopter.cpp: In function 'void calc_nav_rate(int)':
navigation:220: error: 'class AC_PID' has no member named 'set_integrator'
navigation:221: error: 'class AC_PID' has no member named 'set_integrator'
Tags:

Getting different errors now, have made sure the libraries are in my sketchbook location.
Anyone?
ArduCopter:134: error: 'UBRR1H' was not declared in this scope
ArduCopter:134: error: 'UBRR1L' was not declared in this scope
ArduCopter:134: error: 'UCSR1A' was not declared in this scope
ArduCopter:134: error: 'UCSR1B' was not declared in this scope
ArduCopter:134: error: 'U2X1' was not declared in this scope
ArduCopter:134: error: 'RXEN1' was not declared in this scope
ArduCopter:134: error: 'TXEN1' was not declared in this scope
ArduCopter:134: error: 'RXCIE1' was not declared in this scope
ArduCopter:134: error: 'UDRIE1' was not declared in this scope
ArduCopter.cpp: In function 'void USART1_RX_vect()':
ArduCopter:134: error: 'UDR1' was not declared in this scope
ArduCopter.cpp: In function 'void USART1_UDRE_vect()':
ArduCopter:134: error: 'UDR1' was not declared in this scope
ArduCopter:134: error: 'UCSR1B' was not declared in this scope
ArduCopter:134: error: 'UDRIE1' was not declared in this scope
ArduCopter.cpp: At global scope:
ArduCopter:135: error: 'UBRR3H' was not declared in this scope
ArduCopter:135: error: 'UBRR3L' was not declared in this scope
ArduCopter:135: error: 'UCSR3A' was not declared in this scope
ArduCopter:135: error: 'UCSR3B' was not declared in this scope
ArduCopter:135: error: 'U2X3' was not declared in this scope
ArduCopter:135: error: 'RXEN3' was not declared in this scope
ArduCopter:135: error: 'TXEN3' was not declared in this scope
ArduCopter:135: error: 'RXCIE3' was not declared in this scope
ArduCopter:135: error: 'UDRIE3' was not declared in this scope
ArduCopter.cpp: In function 'void USART3_RX_vect()':
ArduCopter:135: error: 'UDR3' was not declared in this scope
ArduCopter.cpp: In function 'void USART3_UDRE_vect()':
ArduCopter:135: error: 'UDR3' was not declared in this scope
ArduCopter:135: error: 'UCSR3B' was not declared in this scope
ArduCopter:135: error: 'UDRIE3' was not declared in this scope
ArduCopter.cpp: In function 'void init_ardupilot()':
system:172: error: 'DDRL' was not declared in this scope

Bump...
Permalink Reply by Andrea & Antonio & C. on March 1, 2012 at 10:44pm check that the tab tools-> board has selected the correct board

Thanks Andrea, solved some of the errors but still getting these:
(Are the libraries updated from the git too?)
J:\APM\APMSource\ardupilot-mega\libraries\AP_Common\AP_Var.cpp:29: error: 'AP_Var' has not been declared
J:\APM\APMSource\ardupilot-mega\libraries\AP_Common\AP_Var.cpp:29: error: 'AP_Var' has not been declared
J:\APM\APMSource\ardupilot-mega\libraries\AP_Common\AP_Var.cpp:30: error: 'AP_Var' has not been declared
J:\APM\APMSource\ardupilot-mega\libraries\AP_Common\AP_Var.cpp:30: error: 'AP_Var' has not been declared
J:\APM\APMSource\ardupilot-mega\libraries\AP_Common\AP_Var.cpp:31: error: 'AP_Var' has not been declared
J:\APM\APMSource\ardupilot-mega\libraries\AP_Common\AP_Var.cpp:31: error: 'AP_Var' has not been declared
J:\APM\APMSource\ardupilot-mega\libraries\AP_Common\AP_Var.cpp:35: error: expected constructor, destructor, or type conversion before '*' token
J:\APM\APMSource\ardupilot-mega\libraries\AP_Common\AP_Var.cpp:36: error: expected constructor, destructor, or type conversion before '*' token
J:\APM\APMSource\ardupilot-mega\libraries\AP_Common\AP_Var.cpp:37: error: 'AP_Var' has not been declared
J:\APM\APMSource\ardupilot-mega\libraries\AP_Common\AP_Var.cpp:38: error: 'AP_Var' has not been declared
J:\APM\APMSource\ardupilot-mega\libraries\AP_Common\AP_Var.cpp:42: error: 'AP_Var' has not been declared
J:\APM\APMSource\ardupilot-mega\libraries\AP_Common\AP_Var.cpp:42: error: expected constructor, destructor, or type conversion before '(' token
Permalink Reply by Andrea & Antonio & C. on March 1, 2012 at 11:23pm I did a test, and also I have some mistakes,
until last night everything worked,
I believe there are errors in the updated files, maybethe version for the compilation of the 022 arduino?
Still looks like you have library issues. I just pulled and both AP and AC build without error from the latest master. I can also go back to the Arducopter-2.4 tag.
Note that the IDE is not very clever about noticing when files change, particularly when you roll back. Restarting the IDE helps a lot.

Seems only in "libraries\AP_Common\AP_Var.cpp", Phil can you attach that file here?
Graham,
That file appears to be deleted. It's not in my local clone repo or the main repo
http://code.google.com/p/ardupilot-mega/source/browse/#git%2Flibrar...
If it exists at that path on your computer then you are not up to date with Git.
There is a file of that name in the AP_Var directory. It was moved there with the comment
commit 451724e80d7ccc2cf9a7313a7248ededa8b31c6b
Author: Andrew Tridgell <tridge@samba.org>
Date: Mon Feb 13 14:57:46 2012 +1100
move AP_Var code and example into libraries/AP_Var
you can use AP_Var by defining USE_AP_VAR
However, I don't that file is your answer. The EEPROM scheme was rewritten to save RAM and I suspect this file relates to the old way. My build using the source from Git works as-is.
Permalink Reply by Andrea & Antonio & C. on March 2, 2012 at 12:22am with the new update the compilation is ok
I do not know if it is compiled AP_var

Ok, it compiles, thank you! Had a few more errors but just deleted the offending .cpp files and it works. libraries/AP_Var had the updated files in italready
Think I copied some libraries over from an old installation.
Thanks again guys

Broken AGAIN after latest pull from Git...
ArduCopter.cpp:81:40: error: Filter.h: No such file or directory
ArduCopter.cpp:83:62: error: AverageFilter.h: No such file or directory
ArduCopter:301: error: 'ModeFilterInt16_Size5' does not name a type
ArduCopter:308: error: 'sonar_mode_filter' was not declared in this scope
ArduCopter:534: error: 'AverageFilterInt32_Size3' does not name a type
ArduCopter:535: error: 'AverageFilterInt32_Size3' does not name a type
ArduCopter.cpp: In function 'int16_t get_rate_roll(int32_t)':
Attitude:153: error: 'roll_rate_d_filter' was not declared in this scope
ArduCopter.cpp: In function 'int16_t get_rate_pitch(int32_t)':
Attitude:183: error: 'pitch_rate_d_filter' was not declared in this scope
ArduCopter.cpp: In function 'void init_motors_out()':
motors_quad:37: error: no matching function for call to 'APM_RC_APM1::SetFastOutputChannels(int, AP_Int16&)'
J:\APM\APMSource\ardupilot-mega\libraries\APM_RC/APM_RC_APM1.h:21: note: candidates are: virtual void APM_RC_APM1::SetFastOutputChannels(uint32_t)

You must be doing something wrong. I just pulled and compiled, not problem.
Just to be sure (I was doing this wrong until last week), go into Arduino/File/Preferences. Point the sketchbook location at your trunk clone directory. Hit OK. Then close Arduino and reopen it. (that's the part that tripped me up!) Then go File/Sketchbook and open Arducopter. Try compiling. Should work.
Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.183 members
24 members
246 members
1277 members
179 members
© 2013 Created by Chris Anderson.
Powered by
