Multiwii Pro Arduino Fehlermeldung

#1
Hallo liebe Community!

Ich und ein Freund haben uns je ein Multiwii Pro gekauft. Wir haben die beiden FCs auf seinem PC auch gleich mit einem fertigen Code aufgespielt, den es bei hobbyking bei dem Produkt unter Files zum download gibt. Jetzt habe ich heute ein wenig weiter getüfftelt und habe noch ein paar Dinge ändern wollen, jedoch hatte ich den Code ja nicht auf meinem PC. Also neu runtergeladen und wollte ihn wieder auf mein Multiwii Pro laden, doch beim Überprüfen von Arduino bekam ich diesen Fehler aus dem Alarms-Sketch obwohl ich dort ja garnichts geändert hatte:

Alarms:167: error: expected unqualified-id before 'else'
Alarms.ino: In function 'void alarmHandler()':
Alarms:93: error: 'i2c_errors_count' was not declared in this scope
Alarms:93: error: 'alarmArray' was not declared in this scope
Alarms:94: error: 'alarmArray' was not declared in this scope
Alarms.ino: In function 'void patternDecode(uint8_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t)':
Alarms:169: error: 'alarmArray' was not declared in this scope
Alarms.ino: In function 'void turnOff(uint8_t)':
Alarms:186: error: 'BUZZERPIN_OFF' was not declared in this scope
Alarms:192: error: 'LEDPIN_OFF' was not declared in this scope
Alarms.ino: In function 'void blinkLED(uint8_t, uint8_t, uint8_t)':
Alarms:310: error: 'LEDPIN_TOGGLE' was not declared in this scope
Alarms.ino: In function 'void toggleResource(uint8_t, uint8_t)':
Alarms:364: error: 'LEDPIN_ON' was not declared in this scope
Alarms:365: error: 'LEDPIN_OFF' was not declared in this scope
EEPROM.ino: In function 'void readGlobalSet()':
EEPROM:11: error: 'global_conf' was not declared in this scope
EEPROM:14: error: 'ROLL' was not declared in this scope
EEPROM.ino: In function 'void readEEPROM()':
EEPROM:23: error: 'global_conf' was not declared in this scope
EEPROM:25: error: 'conf' was not declared in this scope
EEPROM:34: error: 'lookupPitchRollRC' was not declared in this scope
EEPROM:41: error: 'lookupThrottleRC' was not declared in this scope
EEPROM:42: error: 'MAXTHROTTLE' was not declared in this scope
EEPROM.ino: In function 'void writeGlobalSet(uint8_t)':
EEPROM:79: error: 'global_conf' was not declared in this scope
EEPROM.ino: In function 'void writeParams(uint8_t)':
EEPROM:92: error: 'global_conf' was not declared in this scope
EEPROM:94: error: 'conf' was not declared in this scope
EEPROM.ino: In function 'void LoadDefaults()':
EEPROM:104: error: 'conf' was not declared in this scope
EEPROM:104: error: 'ROLL' was not declared in this scope
EEPROM:105: error: 'PITCH' was not declared in this scope
EEPROM:106: error: 'YAW' was not declared in this scope
EEPROM:107: error: 'PIDALT' was not declared in this scope
EEPROM:109: error: 'PIDPOS' was not declared in this scope
EEPROM:109: error: 'POSHOLD_P' was not declared in this scope
EEPROM:109: error: 'POSHOLD_I' was not declared in this scope
EEPROM:110: error: 'PIDPOSR' was not declared in this scope
EEPROM:110: error: 'POSHOLD_RATE_P' was not declared in this scope
EEPROM:110: error: 'POSHOLD_RATE_I' was not declared in this scope
EEPROM:110: error: 'POSHOLD_RATE_D' was not declared in this scope
EEPROM:111: error: 'PIDNAVR' was not declared in this scope
EEPROM:111: error: 'NAV_P' was not declared in this scope
EEPROM:111: error: 'NAV_I' was not declared in this scope
EEPROM:111: error: 'NAV_D' was not declared in this scope
EEPROM:113: error: 'PIDLEVEL' was not declared in this scope
EEPROM:114: error: 'PIDMAG' was not declared in this scope
EEPROM:116: error: 'PIDVEL' was not declared in this scope
EEPROM:123: error: 'CHECKBOXITEMS' was not declared in this scope
EEPROM:174: error: 'MINTHROTTLE' was not declared in this scope
IMU.ino: In function 'void computeIMU()':
IMU:38: error: 'gyroADC' was not declared in this scope
IMU:42: error: 'annex650_overrun_count' was not declared in this scope
IMU:50: error: 'gyroADC' was not declared in this scope
IMU:52: error: 'gyroData' was not declared in this scope
IMU:54: error: 'ACC' was not declared in this scope
IMU:54: error: 'accADC' was not declared in this scope
IMU.ino: In function 'void rotateV(fp_vector*, float*)':
IMU:163: error: 'ROLL' was not declared in this scope
IMU:163: error: 'PITCH' was not declared in this scope
IMU:164: error: 'YAW' was not declared in this scope
IMU.ino: In function 'void getEstimatedAttitude()':
IMU:191: error: 'gyroADC' was not declared in this scope
IMU:194: error: 'accADC' was not declared in this scope
IMU:195: error: 'accSmooth' was not declared in this scope
IMU:199: error: 'acc_1G' was not declared in this scope
IMU:206: error: 'accSmooth' was not declared in this scope
IMU:206: error: 'ROLL' was not declared in this scope
IMU:206: error: 'acc_25deg' was not declared in this scope
IMU:206: error: 'PITCH' was not declared in this scope
IMU:206: error: 'YAW' was not declared in this scope
IMU:207: error: 'f' was not declared in this scope
IMU:209: error: 'f' was not declared in this scope
IMU:217: error: 'accSmooth' was not declared in this scope
IMU:236: error: 'angle' was not declared in this scope
IMU:236: error: 'ROLL' was not declared in this scope
IMU:237: error: 'PITCH' was not declared in this scope

Außerdem markiert es mir folgende Zeile:

alarmArray[0] = 0; //reset toggle bit

Es kann natürlich sein das ich irgendetwas vergessen hab einzustellen und deshalb die Nachricht kommt (Bin blutiger Anfänger) jedoch kann ich mich auch nicht dran erinnern, das diese Nachricht bei meinem Freund kam.



PS: Ich hoffe ihr könnt mir sagen was ich da falsch mache. Im Anhang hab ich auch noch ein Foto von meinem Problem.

Mfg
Daniel
 

Anhänge

Zuletzt bearbeitet:
#3
Haha ne sry des Plus kommt vom Screenshot ich hab bei Fraps die Taste auf Plus gelegt und deshalb steht das da. Aber das kann nicht der Fehler sein weil das vorher noch nicht da war :D
 

Rangarid

Erfahrener Benutzer
#4
Hast du irgendeins der "define <xyz.h>" rausgenommen?

Bzw welche Änderungen hast du vorgenommen? Ging es bevor du Änderungen gemacht hast?
 
#7
Nein selbst da nicht ich hab mir den COde hier http://www.hobbyking.com/hobbyking/store/uh_viewItem.asp?idProduct=26588 unten bei Files unter multi wii 2.2 with gps ready made code heruntergeladen und in Arduino geladen dann auf Uberprüfen gedrückt und dann erscheint dieser Fehler aber der COde ging gestern bei meinem Freund der hat den COde auf mein Board geladen gehabt.
 
Zuletzt bearbeitet:

Rangarid

Erfahrener Benutzer
#8
Welchen Code nimmst du? Multiwii oder Megapirates? Beim Megapirates musst du den Lib ordner ersetzen...

//Ach ich seh grad Multiwii, sieht man ja im Sketch -.-
 
#9
Die Datei sketch_may18a ist mir auchschon aufgefallen und die war bei meinem Freund definitiv nicht da. Aber die kam als ich bei Arduino unter Datei auf neu gedrückt hab. Ich nutze übrigens Arduino 1.0.4.
 
#11
In dem Ordner steht nichts drin aber ich kanns ja mal versuchen. Nur dazu müsstest du mir sagen wie ich den Ordner lösche es geht weder mit Entf noch mit rechtsklick :)
 
#13
Dieser ORdner ist soweit ich weis in keiner ZIP-Datei oder stehe ich gerade auf dem Schlauch? Sobald ich Arduino ausführe öffnet es sich sofort mit dieser Datei. Hier noch 2 andere Bilder:

javaw 2013-05-18 16-16-44-78.png javaw 2013-05-18 16-03-44-68.png
 
#14
Wir haben das Problem gelöst: Ich hab alle Dateien aus dem MultiWii Ordner geöffnet gehabt aber man muss NUR die MultiWii.ino öffnen!
 
FPV1

Banggood

Oben Unten