Re: ROBOTC Natural Language programming help
I have split this topic into it's own thread as the previous thread was quite old and hadn't had a response in almost 4 (!) years. Please refrain from resurrecting threads that old in the future as this will help avoid any confusion.
Is the code posted the entirety of your program? If so, you are missing the closing braces } on your last else
statement and also on task main
. This will generate the '**Error**:Executable statements not valid in 'main' declaration block' error message.
You are also most likely experiencing motors that are twitching when you press a button to control them. This is because there are multiple if/else statements controlling one motor; they essentially cancel each other out when a button is pressed. For a more in-depth explanation, please see my previous comments on this type of scenario in this thread: viewtopic.php?f=11&t=5610&p=23298&hilit=remote+control#p23298
Please let us know if this helps resolve the issue for you.
Check out our Blog
! And our Facebook page
Need help? Take a look at our Wiki
and our Forums.I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe?
~ Carly Rae Jepsen parody