ROBOTC.net forums
http://www.robotc.net/forums/

Developer Packages
http://www.robotc.net/forums/viewtopic.php?f=1&t=6485
Page 1 of 2

Author:  roboRed [ Mon Aug 05, 2013 12:28 am ]
Post subject:  Developer Packages

Does anyone know if RobotC has any developer packages to like add on to the functions that the great compiler can do? (Not that it would need one) I myself am interested to find out if there are any. Something tells me that there aren't though. :cry:

Author:  MHTS [ Mon Aug 05, 2013 1:10 am ]
Post subject:  Re: Developer Packages

What kind of "developer package" are you looking for? Xander has developed a driver suite for all different kind of sensors. We also have a robotics library developed for the FTC competition. It contains lots of different modules including generic PID control, Cooperative multi-tasking with state machine etc.

Author:  roboRed [ Mon Aug 05, 2013 8:38 pm ]
Post subject:  Re: Developer Packages

Like to add on to the functions of the compiler. :oops:

Author:  Ernest3.14 [ Mon Aug 05, 2013 8:57 pm ]
Post subject:  Re: Developer Packages

Like a linker? 8)

Author:  roboRed [ Mon Aug 05, 2013 9:28 pm ]
Post subject:  Re: Developer Packages

What's a linker?

Author:  Ernest3.14 [ Mon Aug 05, 2013 9:47 pm ]
Post subject:  Re: Developer Packages

It links separate compiled .c files, without having to `#include` all of them.

Author:  roboRed [ Mon Aug 05, 2013 9:56 pm ]
Post subject:  Re: Developer Packages

No, lke a way to make new features for RobotC, like a Mod.

Author:  mightor [ Tue Aug 06, 2013 1:19 am ]
Post subject:  Re: Developer Packages

That is currently not possible.

= Xander

Author:  MHTS [ Tue Aug 06, 2013 1:34 am ]
Post subject:  Re: Developer Packages

It depends, for sensor library, it is better to stay separate because there are numerous third party sensors and a lot more in the future. It is impossible to integrate them into RobotC natively. However, some library modules such as PID control could be integrated into RobotC. RobotC already has its built-in PID control but it is not flexible enough to allow user to tune PID constants. I would love to see RobotC support user tunable PID control.

Author:  MHTS [ Tue Aug 06, 2013 1:42 am ]
Post subject:  Re: Developer Packages

Ernest3.14 wrote:
It links separate compiled .c files, without having to `#include` all of them.

BTW, RobotC compiler is implemented as interpretive byte code. That's why you can have only one C file. You cannot compile other C files separately and link them together later on. Even if you can compile separate C files and link them later on, you still have to "include" their corresponding .h header files for all the function prototypes provided by the library module. Therefore, you can't avoid #include either way.

Author:  Ernest3.14 [ Tue Aug 06, 2013 1:44 pm ]
Post subject:  Re: Developer Packages

MHTS wrote:
Even if you can compile separate C files and link them later on, you still have to "include" their corresponding .h header files for all the function prototypes provided by the library module. Therefore, you can't avoid #include either way.


True, but at least I wouldn't have to stick an `#include "Foo.c"` on the end of all of my headers :)

Author:  MHTS [ Tue Aug 06, 2013 1:55 pm ]
Post subject:  Re: Developer Packages

On the other hand, this way will make all libraries open source because you can't distribute your libraries in linkable binaries. This is probably good for the education environment where students can look at the source code and learn.

Author:  MHTS [ Tue Aug 06, 2013 1:59 pm ]
Post subject:  Re: Developer Packages

Ernest3.14 wrote:
True, but at least I wouldn't have to stick an `#include "Foo.c"` on the end of all of my headers :)

BTW, I name all my files .h even though they have function bodies in them (i.e. I do not have separate header files that contain only function prototypes). That means I usually don't have function prototype declarations. The only exception is when there is a "circular reference" that forced me to forward reference something.

Author:  roboRed [ Tue Aug 06, 2013 9:01 pm ]
Post subject:  Re: Developer Packages

Ok, I can accept that there is no mods like what I'm asking, but are there library add ons like what MHTS is describing? :?

Author:  Ernest3.14 [ Tue Aug 06, 2013 9:36 pm ]
Post subject:  Re: Developer Packages

Well... I'm still working on revamping the one we have, but take a look here:
https://github.com/OlyCow/FTC_2013-2014 ... tC/Headers
^That link may go out of date :P

MHTS's code is here: http://proj.titanrobotics.net/hg/Ftc/20 ... dbb95c68b/

Page 1 of 2 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/