|
Page 1 of 1
|
[ 7 posts ] |
|
ROBOTC for Mindstorms 1.91 BETA 2 Released
Author |
Message |
tfriez
Site Admin
Joined: Wed Jan 24, 2007 10:42 am Posts: 620
|
 ROBOTC for Mindstorms 1.91 BETA 2 Released
http://www.robotc.net/downloads/ROBOTCf ... _BETA2.exeMajor 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 |
|
 |
l0jec
Expert
Joined: Mon Oct 27, 2008 9:59 pm Posts: 139
|
 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: Thanks, l0jec
|
Fri Sep 11, 2009 9:57 pm |
|
 |
Ford Prefect
Guru
Joined: Sat Mar 01, 2008 12:52 pm Posts: 1030
|
 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 |
|
 |
l0jec
Expert
Joined: Mon Oct 27, 2008 9:59 pm Posts: 139
|
 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: As does this: Only seems to be an issue with inline functions which return a value.
|
Sat Sep 12, 2009 9:45 am |
|
 |
Ford Prefect
Guru
Joined: Sat Mar 01, 2008 12:52 pm Posts: 1030
|
 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 |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 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 |
|
 |
Ford Prefect
Guru
Joined: Sat Mar 01, 2008 12:52 pm Posts: 1030
|
 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:
_________________ 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 |
|
|
|
Page 1 of 1
|
[ 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
|
|