Page 1 of 1

MultiWii 2.2 Compiling errors

Posted: Mon Apr 22, 2013 9:51 pm
by teddybear3238
Hello all!
I am having issues getting the 2.2 code to compile properly. I keep getting errors:

Code: Select all







MultiWii.ino: In function 'void setup()':
MultiWii:716: error: 'readEEPROM' was not declared in this scope
MultiWii:718: error: 'readGlobalSet' was not declared in this scope
MultiWii:720: error: 'blinkLED' was not declared in this scope
MultiWii.ino: In function 'void go_arm()':
MultiWii:826: error: 'blinkLED' was not declared in this scope
MultiWii.ino: In function 'void loop()':
MultiWii:1015: error: 'writeParams' was not declared in this scope
Sensors.ino: In function 'void GYRO_Common()':
Sensors:303: error: 'blinkLED' was not declared in this scope
Sensors.ino: In function 'void ACC_Common()':
Sensors:375: error: 'writeGlobalSet' was not declared in this scope
Sensors.ino: In function 'uint8_t Mag_getADC()':
Sensors:1092: error: 'writeGlobalSet' was not declared in this scope
Serial.ino: In function 'void evaluateCommand()':
Serial:491: error: 'LoadDefaults' was not declared in this scope
Serial:509: error: 'writeParams' was not declared in this scope


Ive configured all that I think i need to in the config.h so im struggling to find out the issue.

Also i seem to be having an issue where the Pitch and Roll commands are not being sent to the motors. in the GUI it shows that the values are being recieved but for the motor values they do not move for pitch and roll, only throttle and yaw work.

Re: MultiWii 2.2 Compiling errors

Posted: Tue Apr 23, 2013 4:24 pm
by teddybear3238
Any ideas? or am I just missing parts in the config.h file?

Re: MultiWii 2.2 Compiling errors

Posted: Wed Apr 24, 2013 1:14 am
by TextZombie
The only time I've seen these kind of errors is if I've got the wrong board selected in the the Tools | Board menu. Might be worth a look?
If not maybe try a fresh install of the Arduino IDE

P

Re: MultiWii 2.2 Compiling errors

Posted: Wed Apr 24, 2013 5:09 pm
by teddybear3238
This is just during compiling, i cant even get it to upload to the board

Re: MultiWii 2.2 Compiling errors

Posted: Thu Apr 25, 2013 1:28 am
by TextZombie
Compilation relies on having the correct board selected. For example you can't compile code that writes to eeprom if you have a board selected that doesn't have eeprom, you get errors similar to the ones you are describing.

P

Re: MultiWii 2.2 Compiling errors

Posted: Sat Dec 28, 2013 1:37 am
by ardot
Any follow up on this? I am facing the same issue, which is strange because just moments ago everything was compiling just fine!

Re: MultiWii 2.2 Compiling errors

Posted: Tue Jan 07, 2014 2:48 am
by odem
Had the same issue once, was pulling my hair out until I found that I was missing the hash (#) in front of the define statement for the board type.

Check your board type. Maybe replace the entire config.h with a fresh one just to be sure.

Re: MultiWii 2.2 Compiling errors

Posted: Tue Jan 07, 2014 8:15 am
by scrat
Did you do eeprom_clear in Arduino software? File/Examples/EEPROM/eeprom_clear