GrandK / megapirateng-add-ons

Automatically exported from code.google.com/p/megapirateng-add-ons
0 stars 0 forks source link

Refuses to compile on Crius Aiop v2 setting. #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Change config to AIOP V2.
2. Compile
3.

What is the expected output? What do you see instead?

It refuses to compile with multiple errors.

What version of the product are you using? On what operating system?

The latest. Windows 8.

Please provide any additional information below.

Original issue reported on code.google.com by markevic...@gmail.com on 16 Aug 2013 at 6:51

GoogleCodeExporter commented 8 years ago
Give me first 2-3 build errors.

Original comment by pa...@kulma.pl on 16 Aug 2013 at 8:01

GoogleCodeExporter commented 8 years ago
In file included from ArduCopter.pde:89:
C:\Users\Modestas\Documents\Arduino\libraries\AP_AHRS/AP_AHRS.h:30: error: 
expected `)' before '*' token
C:\Users\Modestas\Documents\Arduino\libraries\AP_AHRS/AP_AHRS.h:61: error: ISO 
C++ forbids declaration of 'IMU' with no type
C:\Users\Modestas\Documents\Arduino\libraries\AP_AHRS/AP_AHRS.h:61: error: 
expected ';' before '*' token
C:\Users\Modestas\Documents\Arduino\libraries\AP_AHRS/AP_AHRS.h:66: error: 
expected `;' before 'virtual'
C:\Users\Modestas\Documents\Arduino\libraries\AP_AHRS/AP_AHRS.h:167: error: ISO 
C++ forbids declaration of 'IMU' with no type
C:\Users\Modestas\Documents\Arduino\libraries\AP_AHRS/AP_AHRS.h:167: error: 
expected ';' before '*' token
In file included from 
C:\Users\Modestas\Documents\Arduino\libraries\AP_AHRS/AP_AHRS.h:187,
                 from ArduCopter.pde:89:
C:\Users\Modestas\Documents\Arduino\libraries\AP_AHRS/AP_AHRS_DCM.h:17: error: 
expected `)' before '*' token
In file included from 
C:\Users\Modestas\Documents\Arduino\libraries\AP_AHRS/AP_AHRS.h:188,
                 from ArduCopter.pde:89:
C:\Users\Modestas\Documents\Arduino\libraries\AP_AHRS/AP_AHRS_HIL.h:8: error: 
expected `)' before '*' token
C:\Users\Modestas\Documents\Arduino\libraries\AP_AHRS/AP_AHRS_HIL.h: In member 
function 'virtual void AP_AHRS_HIL::update()':
C:\Users\Modestas\Documents\Arduino\libraries\AP_AHRS/AP_AHRS_HIL.h:25: error: 
'_imu' was not declared in this scope
ArduCopter.pde: At global scope:
ArduCopter:201: error: 'SERIAL_PPM_ENABLED' was not declared in this scope
ArduCopter:220: error: 'Sample_rate' in class 'AP_InertialSensor' does not name 
a type
ArduCopter:317: error: no matching function for call to 
'AP_AHRS_DCM::AP_AHRS_DCM(AP_InertialSensor_MPU6000_I2C*, GPS*&)'
C:\Users\Modestas\Documents\Arduino\libraries\AP_AHRS/AP_AHRS_DCM.h:14: note: 
candidates are: AP_AHRS_DCM::AP_AHRS_DCM()
C:\Users\Modestas\Documents\Arduino\libraries\AP_AHRS/AP_AHRS_DCM.h:14: note:   
              AP_AHRS_DCM::AP_AHRS_DCM(const AP_AHRS_DCM&)
ArduCopter:871: error: 'AP_InertialNav' does not name a type
ArduCopter:914: error: no matching function for call to 
'AP_Relay::AP_Relay(int)'
C:\Users\Modestas\Documents\Arduino\libraries\AP_Relay/AP_Relay.h:18: note: 
candidates are: AP_Relay::AP_Relay()
C:\Users\Modestas\Documents\Arduino\libraries\AP_Relay/AP_Relay.h:18: note:     
            AP_Relay::AP_Relay(const AP_Relay&)
ArduCopter:921: error: no matching function for call to 
'AP_Camera::AP_Camera(AP_Relay*)'
C:\Users\Modestas\Documents\Arduino\libraries\AP_Camera/AP_Camera.h:20: note: 
candidates are: AP_Camera::AP_Camera()
C:\Users\Modestas\Documents\Arduino\libraries\AP_Camera/AP_Camera.h:15: note:   
              AP_Camera::AP_Camera(const AP_Camera&)
C:\Users\Modestas\Documents\Arduino\libraries\AP_InertialSensor/AP_InertialSenso
r_MPU6000_I2C.h: In function 'void loop()':
C:\Users\Modestas\Documents\Arduino\libraries\AP_InertialSensor/AP_InertialSenso
r_MPU6000_I2C.h:48: error: 'virtual uint16_t 
AP_InertialSensor_MPU6000_I2C::num_samples_available()' is private
ArduCopter:978: error: within this context
ArduCopter.pde: In function 'void read_AHRS()':
ArduCopter:2074: error: 'class AP_InertialSensor_MPU6000_I2C' has no member 
named 'get_gyro'
ArduCopter.pde: In function 'void update_altitude_est()':
ArduCopter:2186: error: 'inertial_nav' was not declared in this scope
ArduCopter.pde: In function 'void tuning()':
ArduCopter:2365: error: 'inertial_nav' was not declared in this scope
Attitude.pde: In function 'int16_t get_throttle_accel(int16_t)':
Attitude:800: error: 'class AP_AHRS_DCM' has no member named 'get_accel_ef'
GCS_Mavlink.pde: In function 'void send_location(mavlink_channel_t)':
GCS_Mavlink:249: error: 'class GPS' has no member named 'velocity_down'
GCS_Mavlink.pde: In function 'void send_raw_imu1(mavlink_channel_t)':
GCS_Mavlink:440: error: 'class AP_InertialSensor_MPU6000_I2C' has no member 
named 'get_accel'
GCS_Mavlink:441: error: 'class AP_InertialSensor_MPU6000_I2C' has no member 
named 'get_gyro'
GCS_Mavlink.pde: In function 'void send_raw_imu3(mavlink_channel_t)':
GCS_Mavlink:469: error: 'class AP_InertialSensor_MPU6000_I2C' has no member 
named 'get_accel_offsets'
GCS_Mavlink:470: error: 'class AP_InertialSensor_MPU6000_I2C' has no member 
named 'get_gyro_offsets'
GCS_Mavlink.pde: In member function 'void 
GCS_MAVLINK::handleMessage(mavlink_message_t*)':
GCS_Mavlink:1093: error: 'class AP_InertialSensor_MPU6000_I2C' has no member 
named 'init_accel'
GCS_Mavlink:1094: error: 'class AP_AHRS_DCM' has no member named 'set_trim'
GCS_Mavlink:1102: error: 'class AP_InertialSensor_MPU6000_I2C' has no member 
named 'calibrate_accel'
GCS_Mavlink:1106: error: 'class AP_AHRS_DCM' has no member named 'set_trim'
GCS_Mavlink.pde: In member function 'void GCS_MAVLINK::queued_param_send()':
GCS_Mavlink:2018: error: 'class AP_Param' has no member named 'copy_name_token'
Log.pde: In function 'void Log_Write_Raw()':
Log:298: error: 'class AP_InertialSensor_MPU6000_I2C' has no member named 
'get_gyro'
Log:299: error: 'class AP_InertialSensor_MPU6000_I2C' has no member named 
'get_accel'
Log.pde: In function 'void Log_Write_INAV()':
Log:793: error: 'inertial_nav' was not declared in this scope
Parameters.pde: At global scope:
Parameters:589: error: 'var_info' is not a member of 'AP_InertialSensor'
Parameters:595: error: 'inertial_nav' was not declared in this scope
Parameters:595: error: 'AP_InertialNav' has not been declared
control_modes.pde: In function 'void save_trim()':
control_modes:181: error: 'class AP_AHRS_DCM' has no member named 'add_trim'
control_modes.pde: In function 'void auto_trim()':
control_modes:205: error: 'class AP_AHRS_DCM' has no member named 'add_trim'
inertia.pde: In function 'void read_inertia()':
inertia:10: error: 'inertial_nav' was not declared in this scope
leds.pde: In function 'void update_GPS_light()':
leds:25: error: 'digitalWriteFast' was not declared in this scope
leds:27: error: 'digitalWriteFast' was not declared in this scope
leds:35: error: 'digitalWriteFast' was not declared in this scope
leds:37: error: 'digitalWriteFast' was not declared in this scope
leds:44: error: 'digitalWriteFast' was not declared in this scope
leds.pde: In function 'void update_motor_light()':
leds:56: error: 'digitalWriteFast' was not declared in this scope
leds:58: error: 'digitalWriteFast' was not declared in this scope
leds:63: error: 'digitalWriteFast' was not declared in this scope
leds.pde: In function 'void dancing_light()':
leds:78: error: 'digitalWriteFast' was not declared in this scope
leds.pde: In function 'void clear_leds()':
leds:95: error: 'digitalWriteFast' was not declared in this scope
leds.pde: In function 'void copter_leds_reset()':
leds:196: error: 'digitalWriteFast' was not declared in this scope
leds.pde: In function 'void copter_leds_on()':
leds:208: error: 'digitalWriteFast' was not declared in this scope
leds:215: error: 'digitalWriteFast' was not declared in this scope
leds.pde: In function 'void copter_leds_off()':
leds:229: error: 'digitalWriteFast' was not declared in this scope
leds:236: error: 'digitalWriteFast' was not declared in this scope
leds.pde: In function 'void copter_leds_oscillate()':
leds:276: error: 'digitalWriteFast' was not declared in this scope
leds:283: error: 'digitalWriteFast' was not declared in this scope
leds:295: error: 'digitalWriteFast' was not declared in this scope
leds:302: error: 'digitalWriteFast' was not declared in this scope
leds.pde: In function 'void copter_leds_GPS_on()':
leds:319: error: 'digitalWriteFast' was not declared in this scope
leds.pde: In function 'void copter_leds_GPS_off()':
leds:323: error: 'digitalWriteFast' was not declared in this scope
leds.pde: In function 'void copter_leds_aux_off()':
leds:350: error: 'digitalWriteFast' was not declared in this scope
leds.pde: In function 'void copter_leds_aux_on()':
leds:354: error: 'digitalWriteFast' was not declared in this scope
leds.pde: In function 'void piezo_on()':
leds:358: error: 'digitalWriteFast' was not declared in this scope
leds.pde: In function 'void piezo_off()':
leds:362: error: 'digitalWriteFast' was not declared in this scope
motors.pde: In function 'void init_disarm_motors()':
motors:192: error: 'inertial_nav' was not declared in this scope
radio.pde: In function 'void init_rc_in()':
radio:37: error: 'RC_CHANNEL_TYPE_ANGLE_RAW' was not declared in this scope
setup.pde: In function 'int8_t setup_accel(uint8_t, const Menu::arg*)':
setup:256: error: 'COLD_START' is not a member of 'AP_InertialSensor'
setup:257: error: 'ins_sample_rate' was not declared in this scope
setup:259: error: 'class AP_InertialSensor_MPU6000_I2C' has no member named 
'init_accel'
setup:260: error: 'class AP_AHRS_DCM' has no member named 'set_trim'
setup.pde: In function 'void setup_printf_P(const prog_char_t*, ...)':
setup:273: error: 'class FastSerial' has no member named 'vprintf_P'
setup.pde: In function 'int8_t setup_accel_scale(uint8_t, const Menu::arg*)':
setup:296: error: 'COLD_START' is not a member of 'AP_InertialSensor'
setup:297: error: 'ins_sample_rate' was not declared in this scope
setup:299: error: 'class AP_InertialSensor_MPU6000_I2C' has no member named 
'calibrate_accel'
setup:303: error: 'class AP_AHRS_DCM' has no member named 'set_trim'
setup.pde: In function 'void print_accel_offsets_and_scaling()':
setup:1021: error: 'class AP_InertialSensor_MPU6000_I2C' has no member named 
'get_accel_offsets'
setup:1022: error: 'class AP_InertialSensor_MPU6000_I2C' has no member named 
'get_accel_scale'
setup.pde: In function 'void print_gyro_offsets()':
setup:1035: error: 'class AP_InertialSensor_MPU6000_I2C' has no member named 
'get_gyro_offsets'
system.pde: In function 'void run_cli(FastSerial*)':
system:54: error: 'set_port' is not a member of 'Menu'
system.pde: In function 'void init_ardupilot()':
system:236: error: 'inertial_nav' was not declared in this scope
system.pde: In function 'void startup_ground()':
system:366: error: 'COLD_START' is not a member of 'AP_InertialSensor'
system:367: error: 'ins_sample_rate' was not declared in this scope
test.pde: In function 'int8_t test_ins(uint8_t, const Menu::arg*)':
test:493: error: 'COLD_START' is not a member of 'AP_InertialSensor'
test:494: error: 'ins_sample_rate' was not declared in this scope
test:501: error: 'class AP_InertialSensor_MPU6000_I2C' has no member named 
'get_gyro'
test:502: error: 'class AP_InertialSensor_MPU6000_I2C' has no member named 
'get_accel'

Original comment by markevic...@gmail.com on 17 Aug 2013 at 7:05

GoogleCodeExporter commented 8 years ago
Fixed it. Started using Arduino 1.0.3. Deleted Arduino sketches folder. 
Recreated it. Added files. Works like a dream now.

Original comment by markevic...@gmail.com on 17 Aug 2013 at 12:05

GoogleCodeExporter commented 8 years ago
Nice you have solved the problem :)

Original comment by pa...@kulma.pl on 17 Aug 2013 at 5:30

GoogleCodeExporter commented 8 years ago

Original comment by pa...@kulma.pl on 14 Sep 2013 at 11:37