View unanswered posts | View active topics It is currently Thu Nov 27, 2014 2:08 am






Reply to topic  [ 5 posts ] 
RobotC Messaging (v2.26), bit of a panic here... 
Author Message
Rookie
User avatar

Joined: Wed Feb 21, 2007 12:23 am
Posts: 38
Location: Walla Walla, WA
Post 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
  }
}


Code:
// SimpleRecv

task main() {
 while(true) {
   if(bQueuedMsgAvailable()) {
     eraseDisplay();
     nxtDisplayCenteredTextLine(1,"#: %d",messageParm[0]);
     nxtDisplayCenteredTextLine(5,"L: %d",messageParm[1]);
     ClearMessage();
   }
   wait1Msec(250); // wait quarter second
 }
}


Problem is it won't compile. According to the help page here: http://www.robotc.net/support/nxt/Minds ... saging.htm
this 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
Profile WWW
Rookie
User avatar

Joined: Wed Feb 21, 2007 12:23 am
Posts: 38
Location: Walla Walla, WA
Post 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
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3293
Location: Rotterdam, The Netherlands
Post 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

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Mon Nov 14, 2011 2:58 pm
Profile WWW
Rookie
User avatar

Joined: Wed Feb 21, 2007 12:23 am
Posts: 38
Location: Walla Walla, WA
Post 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
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3293
Location: Rotterdam, The Netherlands
Post 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

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Mon Nov 14, 2011 4:08 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 2 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

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.