Pages: [1] 2   Go Down
Author Topic: NUMBER_MOTOR'was not declared in this scope  (Read 1891 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 236
Posts: 24269
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
what do I do
Declare it, in scope.

Or, failing that, post your code.
Logged

"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.

Poole, Dorset, UK
Offline Offline
Edison Member
*
Karma: 25
Posts: 1872
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Mark
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Saskatchewan
Offline Offline
Sr. Member
****
Karma: 15
Posts: 345
When the going gets weird, the weird turn pro. - Hunter S. Thompson
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 236
Posts: 24269
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This is like pulling teeth.
Where is the code?
Logged

"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.

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 547
Posts: 45935
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 236
Posts: 24269
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Two subtle differences (three, if you count CODE TAGS)
Code:
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.
« Last Edit: January 08, 2013, 10:19:36 am by AWOL » Logged

"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.

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 236
Posts: 24269
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

"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.

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 547
Posts: 45935
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Im only confused thank for nothing...
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 236
Posts: 24269
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
« Last Edit: January 08, 2013, 10:36:48 am by AWOL » Logged

"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.

Pages: [1] 2   Go Up
Jump to: