Go Down

Topic: NUMBER_MOTOR'was not declared in this scope (Read 3030 times) previous topic - next topic

strong

Tried to upload the muiltwii_2_1_mega2_0_gps sketch and this is what happen......NUMBER_MOTOR' was not declared in this scope.

multiwii_2_1_mega2_0_gps:509: error:  'STABLEPIN_PINMODE' was not declared in this scope

what do I do

AWOL

Quote
what do I do

Declare it, in scope.

Or, failing that, post your code.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

holmes4

Fix the error in your code. We can't, you didn't post it!

Mark

strong

IM very new and just want my gps on my quadcopter to work ......How do i declare it......what do I typr.

Jimmy60

You'll need to post the code to get help here. Remember to use the code tags - the little edit icon with the # on it.

If the code is too long attach it.

There are some very helpful people here but none are psychic.

strong

sorry if I seem dumb but muiltwii_2_1_mega2_0_gps is the code I think.

AWOL

This is like pulling teeth.
Where is the code?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

strong

static  int16_t  servo[8] = (1500,1500,1500,1500,1500,1500,1500,1500);

PaulS

Quote
sorry if I seem dumb but muiltwii_2_1_mega2_0_gps is the code I think.

Nope. I pasted muiltwii_2_1_mega2_0_gps in the IDE, but it won't compile:
Quote
sketch_jan07a:0: error: expected constructor, destructor, or type conversion at end of input

AWOL

#9
Jan 08, 2013, 04:18 pm Last Edit: Jan 08, 2013, 04:19 pm by AWOL Reason: 1
Two subtle differences (three, if you count CODE TAGS)
Code: [Select]
static  int16_t  servo[8] = {1500,1500,1500,1500,1500,1500,1500,1500};

Quote
Nope. I pasted muiltwii_2_1_mega2_0_gps in the IDE, but it won't compile:
Quote

You forgot the semicolon. Duh.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

strong


AWOL

OP, since you can't be bothered to post the code or a link to it, shall we close this thread?

Quote
pauls......so it a bad code are what.

PaulS was joking - he pasted what you had posted into an IDE pane and hit compile.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

PaulS

Quote
so it a bad code are what.

Yes. Open the IDE. Open your sketch. Highlight ALL the code. CTRL-C. Then, come here. Select the # icon, then CTRL-V to paste ALL of your code here.

Or don't come back.

strong


AWOL

#14
Jan 08, 2013, 04:34 pm Last Edit: Jan 08, 2013, 04:36 pm by AWOL Reason: 1
Quote
thank for nothing...

Which is more or less precisely what you have told us about what you are trying to do.

We can't see your code.
We can't see your GPS
We can't see your GUI.

Your move.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Go Up