|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
How many lines of code do you have total?
Just curious what other teams using Java are at. We have about ~1800 at the moment.
|
|
#2
|
||||
|
||||
|
Re: How many lines of code do you have total?
Wow!!!!
we have about 140! Why is your code so complex? ![]() |
|
#3
|
||||
|
||||
|
Re: How many lines of code do you have total?
oh btw we havent included our autonomy and deployment yet!
![]() |
|
#4
|
|||
|
|||
|
Re: How many lines of code do you have total?
We made wrapper classes for most of our sensors and control devices so we can get the most use out of the information they provide, we have field oriented swerve drive with several driving modes, many automated processes to make the driver's job more straightforward and less concerned with details, and quite a few extra features that we are very excited about, but are not to be named until our first regional.
![]() |
|
#5
|
|||||
|
|||||
|
Re: How many lines of code do you have total?
All our code put together is ~700 lines. But the main robot class is only ~120.
Drive programming is about 500 of those lines. ![]() |
|
#6
|
|||
|
|||
|
Re: How many lines of code do you have total?
Now the question here is: what are you more proud of? A ton of complex code, or a very streamline one? Now I am not saying a project that consists of thousands of lines are not efficient, but chances are at this level, it is not efficient...
We currently have about 1500. I probably have to go back and streamline everything. Edit: I would compare that to being big and slow or being a petite sprinter. Which one will you really be proud of? Last edited by davidthefat : 24-02-2011 at 21:18. |
|
#7
|
|||
|
|||
|
Re: How many lines of code do you have total?
Quote:
So to answer your question, I'd be proud of whoever wins the race ![]() |
|
#8
|
|||
|
|||
|
Re: How many lines of code do you have total?
Quote:
I know I sound crazy, but I love the low level. I kind of regret using Java. I had to because no one knew C++. I'll go with my wishes before I graduate. |
|
#9
|
|||
|
|||
|
Re: How many lines of code do you have total?
2010 season we had 11,358 lines. 3,036 of those were comments. EDIT: 96 Framework source files, 7 Robot specific files.
2011 season uses the same core codebase of 9,571 lines, 2,749 of which are comments. Sounds like a lot of bloat, but its not. All together it makes for a really elegant system with abstraction and events and so on-- http://code.google.com/p/grtframework/ ![]() Last edited by spartango : 25-02-2011 at 12:01. |
|
#10
|
||||
|
||||
|
Re: How many lines of code do you have total?
I have only 600 lines of code including my various wrappers.
The Reason why is that i use this formatting for eveything Code:
type some_function(type var) {
do_funky_crap();
}
|
|
#11
|
|||
|
|||
|
Re: How many lines of code do you have total?
Quote:
|
|
#12
|
||||
|
||||
|
are any of you guys using CAN?
![]() |
|
#13
|
|||
|
|||
|
Re: How many lines of code do you have total?
heh, time... well actually it didn't take that long in that you can generate some of the code, and then also it carries over year to year so once you have the framework you only add a few hundred/thousand onto it specific for each year.
btw, grtframework has/uses CAN, complete with the neat jag closed loop mode. |
|
#14
|
|||
|
|||
|
Re: How many lines of code do you have total?
Quote:
Also, our's is 1353 lines long at the moment. |
|
#15
|
||||
|
||||
|
Re: How many lines of code do you have total?
We're using python:
Code:
584 arm.py 297 auto.py 309 robot.py 40 util.py ----------- 222 test.py 253 fake_wpilib.py ----------- 1705 total |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|