HongDaSeon / ardu-imu

Automatically exported from code.google.com/p/ardu-imu
0 stars 0 forks source link

ArduIMU 1.9.8 does not compile #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Copy arduimu and libraries from ArduIMU 1.9
2. arduimu compiles in arduino 0.2.3
3. Copy libraries from ArduIMU 1.9.6
4. arduimu compiles in arduino 1.0.1
5. Copy libraries from ArduIMU 1.9.8
6. Many errors

What is the expected output? What do you see instead?
Project does not compile. Many errors

What version of the product are you using? On what operating system?
ArduIMU 1.9.8
Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by mrbd...@gmail.com on 12 Aug 2012 at 8:28

GoogleCodeExporter commented 9 years ago
Error Log from arduino 1.0.1:

In file included from Arduimu.cpp:872:
MPU6000.h:57: error: redefinition of 'volatile uint8_t MPU6000_newdata'
MPU6000.h:57: error: 'volatile uint8_t MPU6000_newdata' previously declared here
MPU6000.h:60: error: redefinition of 'int accelX'
MPU6000.h:60: error: 'int accelX' previously declared here
MPU6000.h:61: error: redefinition of 'int accelY'
MPU6000.h:61: error: 'int accelY' previously declared here
MPU6000.h:62: error: redefinition of 'int accelZ'
MPU6000.h:62: error: 'int accelZ' previously declared here
MPU6000.h:64: error: redefinition of 'int gyroX'
MPU6000.h:64: error: 'int gyroX' previously declared here
MPU6000.h:65: error: redefinition of 'int gyroY'
MPU6000.h:65: error: 'int gyroY' previously declared here
MPU6000.h:66: error: redefinition of 'int gyroZ'
MPU6000.h:66: error: 'int gyroZ' previously declared here
Arduimu:885: error: redefinition of 'FastSerial Serial'
Arduimu:84: error: 'FastSerial Serial' previously declared here
Arduimu.cpp: In function 'void __vector_18()':
Arduimu:885: error: redefinition of 'void __vector_18()'
Arduimu:84: error: 'void __vector_18()' previously defined here
Arduimu.cpp: In function 'void __vector_19()':
Arduimu:885: error: redefinition of 'void __vector_19()'
Arduimu:84: error: 'void __vector_19()' previously defined here
Arduimu.cpp: At global scope:
Arduimu:893: error: redefinition of 'AP_GPS_MTK GPS'
Arduimu:92: error: 'AP_GPS_MTK GPS' previously declared here
Arduimu:952: error: redefinition of 'float G_Dt'
Arduimu:151: error: 'float G_Dt' previously defined here
Arduimu:954: error: redefinition of 'long int timeNow'
Arduimu:153: error: 'long int timeNow' previously defined here
Arduimu:955: error: redefinition of 'long int timer'
Arduimu:154: error: 'long int timer' previously defined here
Arduimu:956: error: redefinition of 'long int timer_old'
Arduimu:155: error: 'long int timer_old' previously declared here
Arduimu:957: error: redefinition of 'long int timer24'
Arduimu:156: error: 'long int timer24' previously defined here
Arduimu:958: error: redefinition of 'boolean groundstartDone'
Arduimu:157: error: 'boolean groundstartDone' previously defined here
Arduimu:960: error: redefinition of 'float AN [8]'
Arduimu:159: error: 'float AN [8]' previously declared here
Arduimu:961: error: redefinition of 'float AN_OFFSET [8]'
Arduimu:160: error: 'float AN_OFFSET [8]' previously declared here
Arduimu:963: error: redefinition of 'float Accel_Vector [3]'
Arduimu:162: error: 'float Accel_Vector [3]' previously defined here
Arduimu:964: error: redefinition of 'float Gyro_Vector [3]'
Arduimu:163: error: 'float Gyro_Vector [3]' previously defined here
Arduimu:965: error: redefinition of 'float Omega_Vector [3]'
Arduimu:164: error: 'float Omega_Vector [3]' previously defined here
Arduimu:966: error: redefinition of 'float Omega_P [3]'
Arduimu:165: error: 'float Omega_P [3]' previously defined here
Arduimu:967: error: redefinition of 'float Omega_I [3]'
Arduimu:166: error: 'float Omega_I [3]' previously defined here
Arduimu:968: error: redefinition of 'float Omega [3]'
Arduimu:167: error: 'float Omega [3]' previously defined here
Arduimu:971: error: redefinition of 'float roll'
Arduimu:170: error: 'float roll' previously declared here
Arduimu:972: error: redefinition of 'float pitch'
Arduimu:171: error: 'float pitch' previously declared here
Arduimu:973: error: redefinition of 'float yaw'
Arduimu:172: error: 'float yaw' previously declared here
Arduimu:975: error: redefinition of 'int toggleMode'
Arduimu:174: error: 'int toggleMode' previously defined here
Arduimu:977: error: redefinition of 'float errorRollPitch [3]'
Arduimu:176: error: 'float errorRollPitch [3]' previously defined here
Arduimu:978: error: redefinition of 'float errorYaw [3]'
Arduimu:177: error: 'float errorYaw [3]' previously defined here
Arduimu:979: error: redefinition of 'float errorCourse'
Arduimu:178: error: 'float errorCourse' previously defined here
Arduimu:980: error: redefinition of 'float COGX'
Arduimu:179: error: 'float COGX' previously defined here
Arduimu:981: error: redefinition of 'float COGY'
Arduimu:180: error: 'float COGY' previously defined here
Arduimu:983: error: redefinition of 'unsigned int cycleCount'
Arduimu:182: error: 'unsigned int cycleCount' previously defined here
Arduimu:984: error: redefinition of 'byte gyro_sat'
Arduimu:183: error: 'byte gyro_sat' previously defined here
Arduimu:986: error: redefinition of 'float DCM_Matrix [3][3]'
Arduimu:185: error: 'float DCM_Matrix [3][3]' previously defined here
Arduimu:994: error: redefinition of 'float Update_Matrix [3][3]'
Arduimu:193: error: 'float Update_Matrix [3][3]' previously defined here
Arduimu:996: error: redefinition of 'float Temporary_Matrix [3][3]'
Arduimu:195: error: 'float Temporary_Matrix [3][3]' previously defined here
Arduimu:1006: error: redefinition of 'int gps_fix_count'
Arduimu:205: error: 'int gps_fix_count' previously defined here
Arduimu:1009: error: redefinition of 'volatile uint8_t MuxSel'
Arduimu:208: error: 'volatile uint8_t MuxSel' previously defined here
Arduimu:1010: error: redefinition of 'volatile uint8_t analog_reference'
Arduimu:209: error: 'volatile uint8_t analog_reference' previously defined here
Arduimu:1011: error: redefinition of 'volatile uint16_t analog_buffer [8]'
Arduimu:210: error: 'volatile uint16_t analog_buffer [8]' previously declared 
here
Arduimu:1012: error: redefinition of 'volatile uint8_t analog_count [8]'
Arduimu:211: error: 'volatile uint8_t analog_count [8]' previously declared here
Arduimu:1026: error: redefinition of 'uint8_t sensors [6]'
Arduimu:225: error: 'uint8_t sensors [6]' previously defined here
Arduimu:1027: error: redefinition of 'int SENSOR_SIGN []'
Arduimu:226: error: 'int SENSOR_SIGN [9]' previously defined here
Arduimu:1034: error: redefinition of 'int mainLoop_count'
Arduimu:233: error: 'int mainLoop_count' previously defined here
Arduimu:1035: error: redefinition of 'int G_Dt_max'
Arduimu:234: error: 'int G_Dt_max' previously defined here
Arduimu:1036: error: redefinition of 'byte gyro_sat_count'
Arduimu:235: error: 'byte gyro_sat_count' previously defined here
Arduimu:1037: error: redefinition of 'byte adc_constraints'
Arduimu:236: error: 'byte adc_constraints' previously defined here
Arduimu:1038: error: redefinition of 'byte renorm_sqrt_count'
Arduimu:237: error: 'byte renorm_sqrt_count' previously defined here
Arduimu:1039: error: redefinition of 'byte renorm_blowup_count'
Arduimu:238: error: 'byte renorm_blowup_count' previously defined here
Arduimu:1040: error: redefinition of 'byte gps_messages_sent'
Arduimu:239: error: 'byte gps_messages_sent' previously defined here
Arduimu:1041: error: redefinition of 'long int perf_mon_timer'
Arduimu:240: error: 'long int perf_mon_timer' previously defined here
Arduimu:1043: error: redefinition of 'unsigned int imu_health'
Arduimu:242: error: 'unsigned int imu_health' previously defined here
Arduimu:1050: error: redefinition of 'int mag_x'
Arduimu:249: error: 'int mag_x' previously declared here
Arduimu:1051: error: redefinition of 'int mag_y'
Arduimu:250: error: 'int mag_y' previously declared here
Arduimu:1052: error: redefinition of 'int mag_z'
Arduimu:251: error: 'int mag_z' previously declared here
Arduimu:1053: error: redefinition of 'int mag_offset [3]'
Arduimu:252: error: 'int mag_offset [3]' previously declared here
Arduimu:1054: error: redefinition of 'float Heading'
Arduimu:253: error: 'float Heading' previously declared here
Arduimu:1055: error: redefinition of 'float Heading_X'
Arduimu:254: error: 'float Heading_X' previously declared here
Arduimu:1056: error: redefinition of 'float Heading_Y'
Arduimu:255: error: 'float Heading_Y' previously declared here
Arduimu.cpp: In function 'void setup()':
Arduimu:1059: error: redefinition of 'void setup()'
Arduimu:258: error: 'void setup()' previously defined here
Arduimu.cpp: In function 'void loop()':
Arduimu:1140: error: redefinition of 'void loop()'
Arduimu:339: error: 'void loop()' previously defined here
Arduimu.cpp: In function 'void startup_ground()':
Arduimu:1295: error: redefinition of 'void startup_ground()'
Arduimu:494: error: 'void startup_ground()' previously defined here
Arduimu.cpp: In function 'void startup_air()':
Arduimu:1376: error: redefinition of 'void startup_air()'
Arduimu:575: error: 'void startup_air()' previously defined here
Arduimu.cpp: In function 'void debug_print(char*)':
Arduimu:1396: error: redefinition of 'void debug_print(char*)'
Arduimu:595: error: 'void debug_print(char*)' previously defined here
Arduimu.cpp: In function 'void debug_handler(byte)':
Arduimu:1405: error: redefinition of 'void debug_handler(byte)'
Arduimu:604: error: 'void debug_handler(byte)' previously defined here

Original comment by mrbd...@gmail.com on 12 Aug 2012 at 8:37

GoogleCodeExporter commented 9 years ago
What is the version of your Arduino IDE. This version is supposed to work on 
1.0.1
If you download a new copy of the IDE from Arduino's website, and put the 
following project on it, it should work without any problem. If you still face 
problems feel free to contact me.

Original comment by ahmad...@gmail.com on 14 Aug 2012 at 6:13

GoogleCodeExporter commented 9 years ago
I am using Arduino IDE 1.0.1. I had copied the libraries folder for ArduIMU
1.9.8 over the libraries folder for ArduIMU 1.9.6 merging the folders and
overwriting the 1.9.6 files. 1.9.6 compiled fine in 1.0.1 but for some
reason 1.9.8 copied over 1.9.6 does not work. I have subsequently deleted
everything and started from 1.9.8 and this compiles fine.

My guess is there must be some duplication of declarations in 1.9.6 files
that are no longer used in 1.9.8.

Original comment by mrbd...@gmail.com on 14 Aug 2012 at 1:44

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
There was a problem in the 1.9.6 version (missing FastSerial) which led me to 
update the code to version 1.9.8. Perhaps, the modified version of FastSerial 
was not compiling well. Anyways, I am glad that you were able to fixed the 
problem. 

Original comment by ahmad...@gmail.com on 15 Aug 2012 at 3:34

GoogleCodeExporter commented 9 years ago
Same Problem I'm facing if you can help me out how to get rid of these errors?
These Kind of erros i'm facing. 
FastSerial:30: error: redefinition of 'FastSerial Serial'
Arduimu:87: error: 'FastSerial Serial' previously declared here
Arduimu.cpp: In function 'void __vector_18()':
FastSerial:30: error: redefinition of 'void __vector_18()'
Arduimu:87: error: 'void __vector_18()' previously defined here
Arduimu.cpp: In function 'void __vector_19()':
FastSerial:30: error: redefinition of 'void __vector_19()'
Arduimu:87: error: 'void __vector_19()' previously defined here
Arduimu.cpp: In function 'void setup()':

Original comment by hamidjah...@gmail.com on 5 Dec 2012 at 12:26