|
Page 1 of 1
|
[ 5 posts ] |
|
RobotC Messaging (v2.26), bit of a panic here...
| Author |
Message |
|
schuelaw
Rookie
Joined: Wed Feb 21, 2007 12:23 am Posts: 38 Location: Walla Walla, WA
|
 RobotC Messaging (v2.26), bit of a panic here...
So I'm teaching simple messaging this afternoon and I test out my simple send and receive programs:  |  |  |  | Code: #pragma config(Sensor, S1, Light, sensorLightInactive) //*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
//SimpleSend
task main() { int x1, x2, x3; x1=0; // message number x3=0; // dummy placeholder
while(true) { x1++; // increment message number x2 = SensorValue[Light]; // get light value nxtDisplayCenteredTextLine(1," Msg: %d",x1); nxtDisplayCenteredTextLine(2,"LtVal: %d", x2); sendMessageWithParm(x1,x2,x3); // send info wait1Msec(500); // wait half second } }
|  |  |  |  |
Problem is it won't compile. According to the help page here: http://www.robotc.net/support/nxt/Minds ... saging.htmthis stuff should all still work. The compiler complains of not recognizing any of these messaging commands or variables. Please tell me I'm just missing something simple here and this stuff isn't just gone! Thanks Albert
|
| Mon Nov 14, 2011 2:32 pm |
|
 |
|
schuelaw
Rookie
Joined: Wed Feb 21, 2007 12:23 am Posts: 38 Location: Walla Walla, WA
|
 Re: RobotC Messaging (v2.26), bit of a panic here...
Just downgraded to 2.0.2 and all is well. So apparently this simple messaging stuff was removed between 2.0.2 and 2.26.1? My plan right now is to have the class downgrade back to 2.0.2. If there's a way I can avoid this, please post.
Thanks,
Albert
|
| Mon Nov 14, 2011 2:55 pm |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2858 Location: Rotterdam, The Netherlands
|
 Re: RobotC Messaging (v2.26), bit of a panic here...
No, they removed it and didn't replace it with something equally easy to use.
- Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Mon Nov 14, 2011 2:58 pm |
|
 |
|
schuelaw
Rookie
Joined: Wed Feb 21, 2007 12:23 am Posts: 38 Location: Walla Walla, WA
|
 Re: RobotC Messaging (v2.26), bit of a panic here...
Thanks. Seems an odd decision. I think I'll be able to downgrade and re-flash everything. Especially now that the students are more comfortable with the programming environment.
|
| Mon Nov 14, 2011 4:00 pm |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2858 Location: Rotterdam, The Netherlands
|
 Re: RobotC Messaging (v2.26), bit of a panic here...
The calls were removed when the support for the RCX was removed. I am still not sure what the logic was but they're basically the same mechanism as on the RCX.
- Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Mon Nov 14, 2011 4:08 pm |
|
|
|
Page 1 of 1
|
[ 5 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 4 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|