Offline
Newbie
Karma: 0
Posts: 13
|
 |
« on: January 08, 2013, 09:36:13 am » |
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
Brattain Member
Karma: 137
Posts: 19021
I don't think you connected the grounds, Dave.
|
 |
« Reply #1 on: January 08, 2013, 09:40:35 am » |
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.
|
|
|
|
Poole, Dorset, UK
Offline
God Member
Karma: 8
Posts: 669
|
 |
« Reply #2 on: January 08, 2013, 09:41:32 am » |
Fix the error in your code. We can't, you didn't post it!
Mark
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #3 on: January 08, 2013, 09:50:17 am » |
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
Full Member
Karma: 10
Posts: 222
When the going gets weird, the weird turn pro. - Hunter S. Thompson
|
 |
« Reply #4 on: January 08, 2013, 09:54:21 am » |
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
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #5 on: January 08, 2013, 10:05:25 am » |
sorry if I seem dumb but muiltwii_2_1_mega2_0_gps is the code I think.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19021
I don't think you connected the grounds, Dave.
|
 |
« Reply #6 on: January 08, 2013, 10:15:45 am » |
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.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #7 on: January 08, 2013, 10:16:33 am » |
static int16_t servo[8] = (1500,1500,1500,1500,1500,1500,1500,1500);
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Online
Brattain Member
Karma: 311
Posts: 35478
Seattle, WA USA
|
 |
« Reply #8 on: January 08, 2013, 10:17:15 am » |
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: sketch_jan07a:0: error: expected constructor, destructor, or type conversion at end of input
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19021
I don't think you connected the grounds, Dave.
|
 |
« Reply #9 on: January 08, 2013, 10:18:03 am » |
Two subtle differences (three, if you count CODE TAGS) static int16_t servo[8] = {1500,1500,1500,1500,1500,1500,1500,1500}; 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.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #10 on: January 08, 2013, 10:23:11 am » |
pauls......so it a bad code are what.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19021
I don't think you connected the grounds, Dave.
|
 |
« Reply #11 on: January 08, 2013, 10:25:42 am » |
OP, since you can't be bothered to post the code or a link to it, shall we close this thread? 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.
|
|
|
|
Seattle, WA USA
Online
Brattain Member
Karma: 311
Posts: 35478
Seattle, WA USA
|
 |
« Reply #12 on: January 08, 2013, 10:26:53 am » |
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
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #13 on: January 08, 2013, 10:33:24 am » |
Im only confused thank for nothing...
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19021
I don't think you connected the grounds, Dave.
|
 |
« Reply #14 on: January 08, 2013, 10:34:47 am » |
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.
|
|
|
|
|