Problem compiling MultiWii 2.0 - P8 not decl. etc. SOLVED!!

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
JFSebastian
Posts: 7
Joined: Sat Mar 10, 2012 7:26 pm

Problem compiling MultiWii 2.0 - P8 not decl. etc. SOLVED!!

Post by JFSebastian »

HELP!

Arduino 1.0

I'm using an exact copy of a defined MultiWii 2.0 I had from a friend (we are both using identical boards - MiniWii and Arduino 1.0)
He can compile, I can't.

He tells me that he can drag and drop the Multiwii_2_0.ino file in the sketch and all the others will follow, GPS, IMU, LCD.ino etc.
Mine doesn't, I have to select all files and then drag them.

I don't do any coding at all so please bear with me if I'm missing something obvious here.


As i try to compile I get this message:

P8 was not declared in this scope

EEPROM:14: error: 'P8' was not declared in this scope
EEPROM:14: error: 'P8' was not declared in this scope
EEPROM:15: error: 'I8' was not declared in this scope
EEPROM:15: error: 'I8' was not declared in this scope
EEPROM:16: error: 'D8' was not declared in this scope
EEPROM:16: error: 'D8' was not declared in this scope
EEPROM:17: error: 'rcRate8' was not declared in this scope
EEPROM:17: error: 'rcRate8' was not declared in this scope
EEPROM:18: error: 'rcExpo8' was not declared in this scope
EEPROM:18: error: 'rcExpo8' was not declared in this scope
EEPROM:19: error: 'rollPitchRate' was not declared in this scope
EEPROM:19: error: 'rollPitchRate' was not declared in this scope
EEPROM:20: error: 'yawRate' was not declared in this scope
EEPROM:20: error: 'yawRate' was not declared in this scope
EEPROM:21: error: 'dynThrPID' was not declared in this scope
EEPROM:21: error: 'dynThrPID' was not declared in this scope
EEPROM:22: error: 'accZero' was not declared in this scope
EEPROM:22: error: 'accZero' was not declared in this scope
EEPROM:23: error: 'magZero' was not declared in this scope
EEPROM:23: error: 'magZero' was not declared in this scope
EEPROM:24: error: 'accTrim' was not declared in this scope
EEPROM:24: error: 'accTrim' was not declared in this scope
EEPROM:25: error: 'activate1' was not declared in this scope
EEPROM:25: error: 'activate1' was not declared in this scope
EEPROM:26: error: 'activate2' was not declared in this scope
EEPROM:26: error: 'activate2' was not declared in this scope
EEPROM:27: error: 'powerTrigger1' was not declared in this scope
EEPROM:27: error: 'powerTrigger1' was not declared in this scope
sketch_apr06e.cpp: In function 'void readEEPROM()':
EEPROM:48: error: 'lookupRX' was not declared in this scope
EEPROM:48: error: 'rcExpo8' was not declared in this scope
EEPROM:48: error: 'rcRate8' was not declared in this scope
sketch_apr06e.cpp: In function 'void checkFirstTime()':
EEPROM:70: error: 'P8' was not declared in this scope
EEPROM:70: error: 'ROLL' was not declared in this scope
EEPROM:70: error: 'I8' was not declared in this scope
EEPROM:70: error: 'D8' was not declared in this scope
EEPROM:71: error: 'PITCH' was not declared in this scope
EEPROM:72: error: 'YAW' was not declared in this scope
EEPROM:73: error: 'PIDALT' was not declared in this scope
EEPROM:74: error: 'PIDGPS' was not declared in this scope
EEPROM:75: error: 'PIDVEL' was not declared in this scope
EEPROM:76: error: 'PIDLEVEL' was not declared in this scope
EEPROM:77: error: 'PIDMAG' was not declared in this scope
EEPROM:78: error: 'rcRate8' was not declared in this scope
EEPROM:79: error: 'rcExpo8' was not declared in this scope
EEPROM:80: error: 'rollPitchRate' was not declared in this scope
EEPROM:81: error: 'yawRate' was not declared in this scope
EEPROM:82: error: 'dynThrPID' was not declared in this scope
EEPROM:83: error: 'CHECKBOXITEMS' was not declared in this scope
EEPROM:83: error: 'activate1' was not declared in this scope
EEPROM:83: error: 'activate2' was not declared in this scope
EEPROM:84: error: 'accTrim' was not declared in this scope
EEPROM:85: error: 'powerTrigger1' was not declared in this scope
sketch_apr06e.cpp: In function 'void computeIMU()':
IMU:11: error: 'ACC' was not declared in this scope
IMU:11: error: 'nunchuk' was not declared in this scope
IMU:13: error: 'INTERLEAVING_DELAY' was not declared in this scope
IMU:17: error: 'INTERLEAVING_DELAY' was not declared in this scope
IMU:24: error: 'gyroData' was not declared in this scope
IMU:24: error: 'gyroADC' was not declared in this scope
IMU:38: error: 'gyroADC' was not declared in this scope
IMU:42: error: 'annex650_overrun_count' was not declared in this scope
IMU:52: error: 'gyroADC' was not declared in this scope
IMU:54: error: 'gyroData' was not declared in this scope
IMU:56: error: 'accADC' was not declared in this scope
sketch_apr06e.cpp: In function 'void rotateV(fp_vector*, float*)':
IMU:171: error: 'ROLL' was not declared in this scope
IMU:171: error: 'PITCH' was not declared in this scope
IMU:172: error: 'YAW' was not declared in this scope
sketch_apr06e.cpp: In function 'void getEstimatedAttitude()':
IMU:198: error: 'gyroADC' was not declared in this scope
IMU:200: error: 'accADC' was not declared in this scope
IMU:201: error: 'accSmooth' was not declared in this scope
IMU:218: error: 'acc_1G' was not declared in this scope
IMU:225: error: 'accSmooth' was not declared in this scope
IMU:225: error: 'ROLL' was not declared in this scope
IMU:225: error: 'acc_25deg' was not declared in this scope
IMU:225: error: 'PITCH' was not declared in this scope
IMU:225: error: 'YAW' was not declared in this scope
IMU:226: error: 'smallAngle25' was not declared in this scope
IMU:228: error: 'smallAngle25' was not declared in this scope
IMU:233: error: 'smallAngle25' was not declared in this scope
IMU:235: error: 'accSmooth' was not declared in this scope
IMU:237: error: 'YAW' was not declared in this scope
IMU:251: error: 'angle' was not declared in this scope
IMU:251: error: 'ROLL' was not declared in this scope
IMU:252: error: 'PITCH' was not declared in this scope
sketch_apr06e.cpp: In function 'void getEstimatedAltitude()':
IMU:273: error: 'currentTime' was not declared in this scope
IMU:274: error: 'currentTime' was not declared in this scope
IMU:279: error: 'BaroAlt' was not declared in this scope
IMU:289: error: 'BaroPID' was not declared in this scope
IMU:291: error: 'D8' was not declared in this scope
IMU:291: error: 'PIDALT' was not declared in this scope
IMU:294: error: 'EstAlt' was not declared in this scope
IMU:296: error: 'AltHold' was not declared in this scope
IMU:300: error: 'P8' was not declared in this scope
IMU:304: error: 'errorAltitudeI' was not declared in this scope
IMU:304: error: 'I8' was not declared in this scope
Last edited by JFSebastian on Mon Apr 09, 2012 9:02 pm, edited 1 time in total.

User avatar
Loosi
Posts: 63
Joined: Sat Aug 20, 2011 8:31 pm
Location: Germany (HSK)
Contact:

Re: Problem compiling MultiWii 2.0 - P8 not declared etc.

Post by Loosi »

Hi!

Have you selected the right Board from "Tools -> Board" menu?

Greetings
Daniel

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: Problem compiling MultiWii 2.0 - P8 not declared etc.

Post by PatrikE »

All files must be in same directory.
The directory name must be same as the .ino file.

Rihtclick on the .ino file and select open with.

JFSebastian
Posts: 7
Joined: Sat Mar 10, 2012 7:26 pm

Re: Problem compiling MultiWii 2.0 - P8 not declared etc.

Post by JFSebastian »

Solved!

All I had to do was to doubleclick the .ino file.
If I drag and drop it there will be an empty skecth in the 1.0, this causes the errors.

Post Reply