View unanswered posts | View active topics It is currently Wed Jul 30, 2014 6:10 am






Reply to topic  [ 7 posts ] 
ROBOTC for Mindstorms 1.91 BETA 2 Released 
Author Message
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:42 am
Posts: 601
Post ROBOTC for Mindstorms 1.91 BETA 2 Released
http://www.robotc.net/downloads/ROBOTCf ... _BETA2.exe

Major Updates:
* Multiple Document Interface - Multiple programs open at one time with tabs!
* More Sample Programs - Over 150 sample programs included.
* Updated Help Documentation - Improved help documentation with more samples and explanations.
* Improved 3rd party support - External drivers and built-in functionality for 3rd party sensors.
* Improved Interface - Debugger windows can now dock, float, and hide.
* TETRIX Support - Now supports any configuration of devices on any sensor port.
* Improved Debugger Windows - Added windows for Servos, TETRIX Controllers, Tasks and others!
* Bug fixes and Compiler Improvements

We're still working on some of the interface issues, but compiler/firmware wise it should be stable.

Thanks!

- Tim

_________________
Timothy Friez
ROBOTC Developer - SW Engineer
tfriez@robotc.net


Wed Sep 09, 2009 5:59 pm
Profile
Expert

Joined: Mon Oct 27, 2008 9:59 pm
Posts: 137
Post Re: ROBOTC for Mindstorms 1.91 BETA 2 Released
I downloaded the new beta and ran into the following issue when attempting to recompile a FTC program which worked with the previous release.

I get a "**Error**:Empty 'non-void' function not allowed. 'return' statement is required" compile error on any inline function which returns a value.
For example, the function below can no longer be compiled:

Code:
int inline testFunction() {
  return 0;
}


Thanks,
l0jec


Fri Sep 11, 2009 9:57 pm
Profile
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post Re: ROBOTC for Mindstorms 1.91 BETA 2 Released
I'm not quite sure, but what happens if you write


inline int testFunction() //...

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Sat Sep 12, 2009 1:30 am
Profile
Expert

Joined: Mon Oct 27, 2008 9:59 pm
Posts: 137
Post Re: ROBOTC for Mindstorms 1.91 BETA 2 Released
Same error; order of the inline and return type does not appear to make a difference.

This works fine:
Code:
int testFunction() {
  return 0;
}

As does this:
Code:
void inline testFunction() {
  //do something
}

Only seems to be an issue with inline functions which return a value.


Sat Sep 12, 2009 9:45 am
Profile
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post Re: ROBOTC for Mindstorms 1.91 BETA 2 Released
did you try my code using "inline " at the first place?

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Sat Sep 12, 2009 10:25 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3165
Location: Rotterdam, The Netherlands
Post Re: ROBOTC for Mindstorms 1.91 BETA 2 Released
Ford,

I just tested that with a later build (1.93) and it's doesn't make a difference. It's been reported.

Regards,
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]


Sat Sep 12, 2009 11:05 am
Profile WWW
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post Re: ROBOTC for Mindstorms 1.91 BETA 2 Released
Xander,
then this is supposed to be 1 of the other 38 new bugs.

with my 1.45 (just 45 bugs) this always was working fine:

Code:
inline float max(float a, float b)
{
  return (a>b ? a : b);
}

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Sat Sep 12, 2009 11:41 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 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.