View unanswered posts | View active topics It is currently Tue Sep 23, 2014 12:23 pm






Reply to topic  [ 25 posts ]  Go to page 1, 2  Next
Developer Packages 
Author Message
Expert
User avatar

Joined: Fri Nov 02, 2012 12:07 am
Posts: 164
Location: California, USA
Post 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:

_________________
string Robored = "Awesome"
~~Neil Balch~~


Mon Aug 05, 2013 12:28 am
Profile WWW
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1347
Post 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
Profile
Expert
User avatar

Joined: Fri Nov 02, 2012 12:07 am
Posts: 164
Location: California, USA
Post Re: Developer Packages
Like to add on to the functions of the compiler. :oops:

_________________
string Robored = "Awesome"
~~Neil Balch~~


Mon Aug 05, 2013 8:38 pm
Profile WWW
Professor
User avatar

Joined: Sat May 18, 2013 1:24 pm
Posts: 272
Location: Olympia, WA
Post Re: Developer Packages
Like a linker? 8)

_________________
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
Profile
Expert
User avatar

Joined: Fri Nov 02, 2012 12:07 am
Posts: 164
Location: California, USA
Post Re: Developer Packages
What's a linker?

_________________
string Robored = "Awesome"
~~Neil Balch~~


Mon Aug 05, 2013 9:28 pm
Profile WWW
Professor
User avatar

Joined: Sat May 18, 2013 1:24 pm
Posts: 272
Location: Olympia, WA
Post 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
Profile
Expert
User avatar

Joined: Fri Nov 02, 2012 12:07 am
Posts: 164
Location: California, USA
Post 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
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post 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
Profile WWW
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1347
Post 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
Profile
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1347
Post 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.


Tue Aug 06, 2013 1:42 am
Profile
Professor
User avatar

Joined: Sat May 18, 2013 1:24 pm
Posts: 272
Location: Olympia, WA
Post 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 :)

_________________
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
Profile
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1347
Post 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
Profile
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1347
Post 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.


Tue Aug 06, 2013 1:59 pm
Profile
Expert
User avatar

Joined: Fri Nov 02, 2012 12:07 am
Posts: 164
Location: California, USA
Post 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
Profile WWW
Professor
User avatar

Joined: Sat May 18, 2013 1:24 pm
Posts: 272
Location: Olympia, WA
Post 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/

_________________
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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 25 posts ]  Go to page 1, 2  Next

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.