Author |
Message |
roboRed
Expert
Joined: Fri Nov 02, 2012 12:07 am Posts: 163 Location: California, USA
|
 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. 
_________________ string Robored = "Awesome" ~~Neil Balch~~
|
Mon Aug 05, 2013 12:28 am |
|
 |
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1523
|
 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.
|
Mon Aug 05, 2013 1:10 am |
|
 |
roboRed
Expert
Joined: Fri Nov 02, 2012 12:07 am Posts: 163 Location: California, USA
|
 Re: Developer Packages
Like to add on to the functions of the compiler. 
_________________ string Robored = "Awesome" ~~Neil Balch~~
|
Mon Aug 05, 2013 8:38 pm |
|
 |
Ernest3.14
Professor
Joined: Sat May 18, 2013 1:24 pm Posts: 271 Location: Olympia, WA
|
 Re: Developer Packages
Like a linker? 
_________________FTC Team 6424, the 'Oly Cow - Chief programmer. FRC Team 4450, Olympia Robotics Federation (ORF). and also quadrotors. Quadrotors!
|
Mon Aug 05, 2013 8:57 pm |
|
 |
roboRed
Expert
Joined: Fri Nov 02, 2012 12:07 am Posts: 163 Location: California, USA
|
 Re: Developer Packages
What's a linker?
_________________ string Robored = "Awesome" ~~Neil Balch~~
|
Mon Aug 05, 2013 9:28 pm |
|
 |
Ernest3.14
Professor
Joined: Sat May 18, 2013 1:24 pm Posts: 271 Location: Olympia, WA
|
 Re: Developer Packages
It links separate compiled .c files, without having to `#include` all of them.
_________________FTC Team 6424, the 'Oly Cow - Chief programmer. FRC Team 4450, Olympia Robotics Federation (ORF). and also quadrotors. Quadrotors!
|
Mon Aug 05, 2013 9:47 pm |
|
 |
roboRed
Expert
Joined: Fri Nov 02, 2012 12:07 am Posts: 163 Location: California, USA
|
 Re: Developer Packages
No, lke a way to make new features for RobotC, like a Mod.
_________________ string Robored = "Awesome" ~~Neil Balch~~
|
Mon Aug 05, 2013 9:56 pm |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 Re: Developer Packages
That is currently not possible.
= 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]
|
Tue Aug 06, 2013 1:19 am |
|
 |
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1523
|
 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.
|
Tue Aug 06, 2013 1:34 am |
|
 |
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1523
|
 Re: Developer Packages
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.
|
Tue Aug 06, 2013 1:42 am |
|
 |
Ernest3.14
Professor
Joined: Sat May 18, 2013 1:24 pm Posts: 271 Location: Olympia, WA
|
 Re: Developer Packages
True, but at least I wouldn't have to stick an `#include "Foo.c"` on the end of all of my headers 
_________________FTC Team 6424, the 'Oly Cow - Chief programmer. FRC Team 4450, Olympia Robotics Federation (ORF). and also quadrotors. Quadrotors!
|
Tue Aug 06, 2013 1:44 pm |
|
 |
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1523
|
 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.
|
Tue Aug 06, 2013 1:55 pm |
|
 |
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1523
|
 Re: Developer Packages
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.
|
Tue Aug 06, 2013 1:59 pm |
|
 |
roboRed
Expert
Joined: Fri Nov 02, 2012 12:07 am Posts: 163 Location: California, USA
|
 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? 
_________________ string Robored = "Awesome" ~~Neil Balch~~
|
Tue Aug 06, 2013 9:01 pm |
|
 |
Ernest3.14
Professor
Joined: Sat May 18, 2013 1:24 pm Posts: 271 Location: Olympia, WA
|
 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  MHTS's code is here: http://proj.titanrobotics.net/hg/Ftc/20 ... dbb95c68b/
_________________FTC Team 6424, the 'Oly Cow - Chief programmer. FRC Team 4450, Olympia Robotics Federation (ORF). and also quadrotors. Quadrotors!
|
Tue Aug 06, 2013 9:36 pm |
|
|