Author |
Message |
roboRed
Expert
Joined: Fri Nov 02, 2012 12:07 am Posts: 163 Location: California, USA
|
 Re: Developer Packages
_________________ string Robored = "Awesome" ~~Neil Balch~~
|
Tue Aug 06, 2013 10:24 pm |
|
 |
Ernest3.14
Professor
Joined: Sat May 18, 2013 1:24 pm Posts: 271 Location: Olympia, WA
|
 Re: Developer Packages
You can never finish anything  It'll be reasonably complete before kickoff, Sept. 7th.
_________________FTC Team 6424, the 'Oly Cow - Chief programmer. FRC Team 4450, Olympia Robotics Federation (ORF). and also quadrotors. Quadrotors!
|
Tue Aug 06, 2013 11:28 pm |
|
 |
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1523
|
 Re: Developer Packages
|
Wed Aug 07, 2013 3:55 am |
|
 |
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1523
|
 Re: Developer Packages
May I make a suggestion? Most of the functions in your library are renaming RobotC intrinsic functions. For those you may consider using macros instead. For example: You may not realize, RobotC has a limit on the number of functions. The limit on the new version is fairly big but it can still run out. But wrapping a lot of intrinsic functions with different names will waste a lot of slots in the function table. Besides, calling a function that in turns calling an intrinsic function is very inefficient. You can achieve the same effect with the above macros.
|
Wed Aug 07, 2013 4:12 am |
|
 |
Ernest3.14
Professor
Joined: Sat May 18, 2013 1:24 pm Posts: 271 Location: Olympia, WA
|
 Re: Developer Packages
Heh, I was using `inline`, until I noticed RobotC doesn't support that. Thanks for the heads up about function limits and macros. The C++ programmer in me is complaining about type checking though 
_________________FTC Team 6424, the 'Oly Cow - Chief programmer. FRC Team 4450, Olympia Robotics Federation (ORF). and also quadrotors. Quadrotors!
|
Wed Aug 07, 2013 1:50 pm |
|
 |
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1523
|
 Re: Developer Packages
Since the macros will be expanded to the corresponding RobotC Intrinsic functions, you still get type checking through the intrinsic function prototypes.
|
Wed Aug 07, 2013 2:37 pm |
|
 |
Ernest3.14
Professor
Joined: Sat May 18, 2013 1:24 pm Posts: 271 Location: Olympia, WA
|
 Re: Developer Packages
Ok. Thanks! Do you know what the limit on the number of functions is? I don't want to rewrite stuff if I don't have to 
_________________FTC Team 6424, the 'Oly Cow - Chief programmer. FRC Team 4450, Olympia Robotics Federation (ORF). and also quadrotors. Quadrotors!
|
Wed Aug 07, 2013 2:38 pm |
|
 |
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1523
|
 Re: Developer Packages
I don't remember. I exceeded their limit a few years back with our library. So they increased it and I forgot how much they increased it. I think it is at least a couple hundreds.
|
Wed Aug 07, 2013 2:45 pm |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 Re: Developer Packages
I just asked and it's around 256 or so.
= 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]
|
Wed Aug 07, 2013 4:13 pm |
|
 |
roboRed
Expert
Joined: Fri Nov 02, 2012 12:07 am Posts: 163 Location: California, USA
|
 Re: Developer Packages
THanks a lot! 
_________________ string Robored = "Awesome" ~~Neil Balch~~
|
Wed Aug 07, 2013 7:18 pm |
|
|