Go to Post I have caught a very strong case of FIRST fever. - weinbergmath [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #31   Spotlight this post!  
Unread 04-06-2011, 02:33 PM
bdbayes bdbayes is offline
Captain
FRC #2927 (Pi Rho Techs)
Team Role: Leadership
 
Join Date: Apr 2011
Rookie Year: 2009
Location: Tacoma, WA
Posts: 75
bdbayes is a jewel in the roughbdbayes is a jewel in the roughbdbayes is a jewel in the rough
Re: How many lines of code do you have total?

Our robot runs on approximately 250 lines of code. That does not include an autonomous program.
Reply With Quote
  #32   Spotlight this post!  
Unread 04-20-2011, 03:39 AM
PatJameson PatJameson is offline
Registered User
FRC #0011 (MORT)
Team Role: Alumni
 
Join Date: Mar 2011
Rookie Year: 2011
Location: USA
Posts: 16
PatJameson is on a distinguished road
Re: How many lines of code do you have total?

Quote:
Originally Posted by davidthefat View Post
I am going to use inline assembly next year to squeeze out more juice and performance from the cRio.
What are you going to try to do to have the need to squeeze out more juice, if I may ask?

Also, our's is 1353 lines long at the moment.
Reply With Quote
  #33   Spotlight this post!  
Unread 04-21-2011, 03:53 PM
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,033
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
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
So... around 1/3 of the code is unit test / related code, and at least 10% of the rest is comments.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote
  #34   Spotlight this post!  
Unread 04-21-2011, 07:03 PM
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: How many lines of code do you have total?

Quote:
Originally Posted by PatJameson View Post
What are you going to try to do to have the need to squeeze out more juice, if I may ask?

Also, our's is 1353 lines long at the moment.
Image processing. We aren't sending any feed to the classmate. All the image processing will probably be done on an off board processor. That is where I will utilize the assembly, especially with object recognition.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
Reply With Quote
  #35   Spotlight this post!  
Unread 04-21-2011, 09:47 PM
PatJameson PatJameson is offline
Registered User
FRC #0011 (MORT)
Team Role: Alumni
 
Join Date: Mar 2011
Rookie Year: 2011
Location: USA
Posts: 16
PatJameson is on a distinguished road
Re: How many lines of code do you have total?

Quote:
Originally Posted by davidthefat View Post
Image processing. We aren't sending any feed to the classmate. All the image processing will probably be done on an off board processor. That is where I will utilize the assembly, especially with object recognition.
Interesting. I created a bit of recognition using only java run on a netbook which could send information to the cRIO. We didn't use it this year as there were much less complex ways to complete autonomous, though. The netbook had plenty of processing power for what I did with it.
Reply With Quote
  #36   Spotlight this post!  
Unread 04-22-2011, 09:04 PM
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: How many lines of code do you have total?

Quote:
Originally Posted by PatJameson View Post
Interesting. I created a bit of recognition using only java run on a netbook which could send information to the cRIO. We didn't use it this year as there were much less complex ways to complete autonomous, though. The netbook had plenty of processing power for what I did with it.
Eh, not a fan of Java. But thanks for sharing. I have more ambitious goals I guess.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:50 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi