Subject:
|
mindscript - subroutines
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Thu, 22 Dec 2005 23:12:08 GMT
|
Viewed:
|
1547 times
|
| |
| |
Hi,
I'm new to this mindscript stuff and lugnet, so hopefully someone can shed some
insight for me.
I was lead to believe that Mindscript had the capability of defining
subroutines. In either Bricx or Scripted I keep coming up with an error when I
use the word "sub".
Here is some simple code that doesn't give me an error:
program mytest {
macro mysound {
sound 3
}
main {
repeat 5 {mysound}
}
}
Here is code that gives me an error:
program mytest {
sub mysound {
sound 3
}
main {
repeat 5 {mysound}
}
}
I need to use mindscript and define it as a subroutine. The indication is
"error" and no further information in either scripted or bricx.
I have downloaded the mindscript sdk 2.5 and have installed it.
Scripted comes up with coyright lego 2000-2002, is 152k in size and is dated
9/27/02.
Bricx comes up as 3.3.7.10. How does bricx know to use the mindscript compiler?
Since I am using an RCX, is there any way of creating and saving the LASM code
from either one of these interfaces?
Thanks for the help.
Ron
|
|
Message has 3 Replies: | | Re: mindscript - subroutines
|
| (...) Ron, I am fairly new to the mindscript language as well, but I have done substantial research into this problem as I was encountering the exact same problem. From what I have found, you cannot do user subroutines in mindscript FOR THE RCX. (...) (19 years ago, 23-Dec-05, to lugnet.robotics)
| | | Re: mindscript - subroutines
|
| (...) Your code works fine for the Spybot target. RCX2 and earlier brick types do not support defining subroutines in MindScript. This is documented in the VPBrick API help file which you can access from within BricxCC. Just press the context (...) (19 years ago, 23-Dec-05, to lugnet.robotics)
| | | Re: mindscript - subroutines
|
| I'm so new that I don't even know MindScript :confused: My questions... where to get it and its documentation? Is that the only script language for NXT? When I start using some variables and calculations the block structue is becoming hard to read. (...) (17 years ago, 20-Dec-07, to lugnet.robotics)
|
7 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|