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'
Replies
I downloaded 2.34 Arduplane source file, and I am getting about 10:
"libraries\AP_Common\AP_Var.cpp:29: error: 'AP_Var' has not been declared" errors.
Why?
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)
Seems only in "libraries\AP_Common\AP_Var.cpp", Phil can you attach that file here?
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