Go to Post With FIRST, its all about style! In the northeast, we are alllll style. - Andy Grady [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-03-2015, 17:02
Tim Lehmann4967's Avatar
Tim Lehmann4967 Tim Lehmann4967 is offline
A Sentient Being
FRC #4967 (That O.N.E Team (Our Next Engineers))
Team Role: Alumni
 
Join Date: Dec 2013
Rookie Year: 2006
Location: In a gravitational field
Posts: 57
Tim Lehmann4967 will become famous soon enough
Deploying Code...

Our programmer kept sitting in his chair and looking around. Thus, he was promptly scolded for not working. His response was "I am deploying code."

We needed a way to know when he was deploying code. Behold, the status flag&safety glasses combo.
Attached Thumbnails
Click image for larger version

Name:	20150314_144856.jpg
Views:	250
Size:	1.27 MB
ID:	18646  
__________________
L.A.S.E.R - Light Amplification by the Stimulated Emission of Radiation
Reply With Quote
  #2   Spotlight this post!  
Unread 14-03-2015, 22:10
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,712
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Deploying Code...

__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #3   Spotlight this post!  
Unread 14-03-2015, 22:25
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 236
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
Re: Deploying Code...

Based on the long deploy time I take it you guys use labview?
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
Reply With Quote
  #4   Spotlight this post!  
Unread 14-03-2015, 23:01
Tim Lehmann4967's Avatar
Tim Lehmann4967 Tim Lehmann4967 is offline
A Sentient Being
FRC #4967 (That O.N.E Team (Our Next Engineers))
Team Role: Alumni
 
Join Date: Dec 2013
Rookie Year: 2006
Location: In a gravitational field
Posts: 57
Tim Lehmann4967 will become famous soon enough
Re: Deploying Code...

Quote:
Originally Posted by TimTheGreat View Post
Based on the long deploy time I take it you guys use labview?
We use C++. It doesn't take terribly long to deploy, but it is long enough for someone to notice.
__________________
L.A.S.E.R - Light Amplification by the Stimulated Emission of Radiation
Reply With Quote
  #5   Spotlight this post!  
Unread 14-03-2015, 23:15
Christopher149 Christopher149 is offline
Registered User
FRC #0857 (Superior Roboworks) FTC 10723 (SnowBots)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2007
Location: Houghton, MI
Posts: 1,103
Christopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond repute
Re: Deploying Code...

Quote:
Originally Posted by Tim Lehmann4967 View Post
We use C++. It doesn't take terribly long to deploy, but it is long enough for someone to notice.
We're using Java, and it's 10 seconds. That is barely noticeable.
__________________
2015-present: FTC 10723 mentor
2012-present: 857 mentor
2008-2011: 857 student

2015: Industrial Design, Excellence in Engineering, District Finalist, Archimedes Division (#6 alliance captain)
2014: Judges Award, District Engineering Inspiration, District Finalist, Galileo Division

Reply With Quote
  #6   Spotlight this post!  
Unread 15-03-2015, 00:12
pastelpony's Avatar
pastelpony pastelpony is offline
Programmer/Electrical
AKA: Zach M
FRC #3525 (Nuts and Bolts of Fury)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 152
pastelpony will become famous soon enough
Re: Deploying Code...

Quote:
Originally Posted by Christopher149 View Post
We're using Java, and it's 10 seconds. That is barely noticeable.
With an i7, it still takes us about 2-3 minutes to build/deploy code with LabVIEW.
__________________
Team 3525 Head Programmer (2014- ) - Java (Formerly LabVIEW)
Reply With Quote
  #7   Spotlight this post!  
Unread 15-03-2015, 00:14
Pratik Kunapuli's Avatar
Pratik Kunapuli Pratik Kunapuli is offline
Probably browning-out on Astro-Turf
FRC #1648 (G3 Robotics)(EWCP)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Atlanta, GA
Posts: 143
Pratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to all
Re: Deploying Code...

We are using java with an i7 and have had compile and deploy times as quick as 7 seconds, but the average for us is somewhere around 12 seconds.
__________________
Official Driving Record: 101-59-0
2012-2015 Student 341 Miss Daisy
2015-Current Mentor 1648 G3 Robotics
Reply With Quote
  #8   Spotlight this post!  
Unread 15-03-2015, 08:07
FlamingSpork FlamingSpork is offline
Eating Utensil
FRC #3003 (Tan[X])
Team Role: Programmer
 
Join Date: Nov 2014
Rookie Year: 2015
Location: Canandaigua, NY
Posts: 65
FlamingSpork is just really niceFlamingSpork is just really niceFlamingSpork is just really niceFlamingSpork is just really niceFlamingSpork is just really nice
Re: Deploying Code...

We use C++ and an i5. Our build and deploy times are around 30 seconds for small changes. (And several minutes for large changes.)
Reply With Quote
  #9   Spotlight this post!  
Unread 15-03-2015, 08:54
Landonh12's Avatar
Landonh12 Landonh12 is offline
270 points
AKA: Landon Haugh
FRC #0364 (Team Fusion)
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Gulfport, MS
Posts: 211
Landonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud of
Re: Deploying Code...

Quote:
Originally Posted by pastelpony View Post
With an i7, it still takes us about 2-3 minutes to build/deploy code with LabVIEW.
You do know that you don't have to build the code every time you want to run it, right?

You can simply go to Robot Main.vi and run it from there. It takes us about 15 seconds to deploy the first time, and around 3 seconds after that until we reboot.

You only need to build/deploy/run as startup when you are done with your code.
__________________
Team Fusion 364 - Driver/Programmer 2012-2015; Controls Mentor 2016-Present
Reply With Quote
  #10   Spotlight this post!  
Unread 15-03-2015, 10:23
pastelpony's Avatar
pastelpony pastelpony is offline
Programmer/Electrical
AKA: Zach M
FRC #3525 (Nuts and Bolts of Fury)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 152
pastelpony will become famous soon enough
Re: Deploying Code...

Quote:
Originally Posted by Landonh12 View Post
You do know that you don't have to build the code every time you want to run it, right?

You can simply go to Robot Main.vi and run it from there. It takes us about 15 seconds to deploy the first time, and around 3 seconds after that until we reboot.

You only need to build/deploy/run as startup when you are done with your code.
I've known about the run from robot main.vi but I never really used it. I've just got used to the whole build/run as startup protocol. I'll actually try to start running through there. Thanks.
__________________
Team 3525 Head Programmer (2014- ) - Java (Formerly LabVIEW)
Reply With Quote
  #11   Spotlight this post!  
Unread 15-03-2015, 10:42
TogetherSword8 TogetherSword8 is offline
Registered User
FRC #0888 (Robotiators)
Team Role: Alumni
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Glenelg High School
Posts: 85
TogetherSword8 is an unknown quantity at this point
Re: Deploying Code...

Another LabVIEW trick, code in dashboard variables for any variables you have in your code (works out really well for autonomous). This allows you to easily test your autonomous code and modify any values without having to stop and change in your code. Once you hit the right combination, screenshot your dashboard, and go back to your code and replace the dashboard variable receive function with the variable it is supposed to be. This is useful in competition, we were able to fully debug an autonomous in one practice field time in this method, and we ran it 5 times in a row during this same session to make sure it would run consistently on the field.

The running from robot main method works great when you are in your shop, i just get a little wary about possibly forgetting to rebuild and redeploy the code before we go out onto the field.
__________________
I program a robot. Which means I write code and everyone gets mad at me when something doesn't work, even if I am the only one that knows it doesn't work. The key part to know is that the robot never works.
Reply With Quote
  #12   Spotlight this post!  
Unread 15-03-2015, 10:55
pastelpony's Avatar
pastelpony pastelpony is offline
Programmer/Electrical
AKA: Zach M
FRC #3525 (Nuts and Bolts of Fury)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 152
pastelpony will become famous soon enough
Re: Deploying Code...

Quote:
Originally Posted by TogetherSword8 View Post
Another LabVIEW trick, code in dashboard variables for any variables you have in your code (works out really well for autonomous). This allows you to easily test your autonomous code and modify any values without having to stop and change in your code. Once you hit the right combination, screenshot your dashboard, and go back to your code and replace the dashboard variable receive function with the variable it is supposed to be. This is useful in competition, we were able to fully debug an autonomous in one practice field time in this method, and we ran it 5 times in a row during this same session to make sure it would run consistently on the field.

The running from robot main method works great when you are in your shop, i just get a little wary about possibly forgetting to rebuild and redeploy the code before we go out onto the field.
I've been doing that for a while and had that set up this season, though from it's usage, I found that using time controls with autonomous has proven to be unreliable and will in the future try to use encoders + PID.
__________________
Team 3525 Head Programmer (2014- ) - Java (Formerly LabVIEW)
Reply With Quote
  #13   Spotlight this post!  
Unread 15-03-2015, 13:25
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Re: Deploying Code...

I need one of these.
Too often I have mechanicals yelling at me, "What's the hold up?" when they're waiting for the robot to do something.
Darn mechanicals.
__________________
Head Programmer / Driver
Reply With Quote
  #14   Spotlight this post!  
Unread 15-03-2015, 14:10
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Deploying Code...

If you're using LabVIEW and trying to "Deploy" code, you're doing it wrong. There are legitimate reasons to use "Deploy", but I can't think of any that would be of use to an FRC team.

It takes only about ten seconds to send a LabVIEW program to the robot using "Run as Startup". Doing the "Build" beforehand can be several minutes, but it doesn't interfere with anyone running the robot. You don't even need to have the robot connected, or even present, to "Build" the code.

When you're doing interactive development/debug sessions by "Run"ning the Robot Main vi, sending all the code to the robot does take about the same amount of time as compiling it with "Build", but only once at the beginning of the process. Thereafter, it is only a few seconds to send only the changed code and run it again.
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 13:48.

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