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
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
-
29,2 KB Aufrufe: 24
-
32,4 KB Aufrufe: 19
Zuletzt bearbeitet: