Go to Post FIRST continues their full-frontal assault on mentor's vacation days. - Lil' Lavery [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 07-03-2013, 22:02
Reggie335 Reggie335 is offline
Registered User
AKA: Reginald
FRC #4297 (WeNoRobots)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Birmingham, AL
Posts: 68
Reggie335 is an unknown quantity at this point
Programming Help.

Toady We Lost All our Programming And We really need Help Trying to make a new one.

Last edited by Reggie335 : 07-03-2013 at 22:05.
Reply With Quote
  #2   Spotlight this post!  
Unread 07-03-2013, 22:10
Ziv Ziv is offline
Has code to be writing...
FRC #0125 (Nutrons)
Team Role: Alumni
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Boston
Posts: 39
Ziv is a glorious beacon of lightZiv is a glorious beacon of lightZiv is a glorious beacon of lightZiv is a glorious beacon of lightZiv is a glorious beacon of light
Re: Programming Help.

Well, there are certainly people here who'd love to help. However, first know that it'll be a lot easier to get help in person from someone at the regional. Then again, in the interest of getting as much work done tonight as possible, it'd be helpful to answer the following questions.

1. What language are you using? (I suppose if you're restarting you could switch if you like.)
2. What's you're robot like? What subsystems does it have? How do they move? Do they have sensors?
3. What do you need those subsystems to do?
4. Which parts of question 3 do you need help with?

I know a not-too-complicated program can be finished in under 3 hours with command-based Java, and I'm sure similar times are possible in the other languages. But to provide help, we need to know how to help first.

Good luck!
Reply With Quote
  #3   Spotlight this post!  
Unread 07-03-2013, 22:40
Reggie335 Reggie335 is offline
Registered User
AKA: Reginald
FRC #4297 (WeNoRobots)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Birmingham, AL
Posts: 68
Reggie335 is an unknown quantity at this point
Re: Programming Help.

Quote:
Originally Posted by Ziv View Post
Well, there are certainly people here who'd love to help. However, first know that it'll be a lot easier to get help in person from someone at the regional. Then again, in the interest of getting as much work done tonight as possible, it'd be helpful to answer the following questions.

1. What language are you using? (I suppose if you're restarting you could switch if you like.)
2. What's you're robot like? What subsystems does it have? How do they move? Do they have sensors?
3. What do you need those subsystems to do?
4. Which parts of question 3 do you need help with?

I know a not-too-complicated program can be finished in under 3 hours with command-based Java, and I'm sure similar times are possible in the other languages. But to provide help, we need to know how to help first.

Good luck!
1.Language: Labview (Which Language Do you prefer )
2.Our DriveBase Consist of 2 Wheel Drive each Motor Is Controlled By A Jaguars (2 Jaguars total)
3.Our Shooter consist two Motor's Controlled By two Victor 888 Motor Controllers
4.Our Pneumatic System Consist Of Two Air Cylinder which are Controlled By One Double Solenoid Each

(Thanks For Helping Us )
Reply With Quote
  #4   Spotlight this post!  
Unread 07-03-2013, 23:29
z_beeblebrox's Avatar
z_beeblebrox z_beeblebrox is offline
Custom User Title
AKA: Cal
FRC #4183 (Bit Buckets)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Cambridge MA
Posts: 811
z_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond repute
Re: Programming Help.

How did you lose your code? Any chance of recovering it?

Also, proper capitalization makes it much easier to read and understand a post.
__________________
2012 Utah Regional Rookie All-Star
2013 Phoenix Regional Judge's Award for "design process and prototyping"
2014 Hub City Regional Quality Award, Arizona Regional Excellence in Engineering Award
2015 Arizona East Regional Creativity Award, Winner
2016 Arizona North Regional Finalist, Arizona West Excellence in Engineering Award, Finalist
Reply With Quote
  #5   Spotlight this post!  
Unread 07-03-2013, 23:50
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: Programming Help.

Did it accidentally get deleted somehow, or did the laptop die? If the first option: http://www.piriform.com/recuva.


I'm going to use this opportunity to make a quick point:

Always back up your critical files. If your team only has one programmer, then something like Dropbox, Google Drive, or Skydrive should work perfectly fine for you. If your team has more than one experienced programmer, and especially if you're using the text-based languages (Java, C++, or Python), you can used a more advanced backup solution such as Subversion or Git (both of which are built into Netbeans and WindRiver IIRC) along with Github or Bitbucket, which provide advanced features that can make life a bit easier if you know how to use them.

Always keep a copy of your working code backed up somewhere, somehow. Flash drive, different computer, the cloud, repository hosting website, doesn't matter. Hard drives fail, computers fall. You never know what might happen.
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional
Reply With Quote
  #6   Spotlight this post!  
Unread 08-03-2013, 01:11
Ziv Ziv is offline
Has code to be writing...
FRC #0125 (Nutrons)
Team Role: Alumni
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Boston
Posts: 39
Ziv is a glorious beacon of lightZiv is a glorious beacon of lightZiv is a glorious beacon of lightZiv is a glorious beacon of lightZiv is a glorious beacon of light
Re: Programming Help.

Quote:
Originally Posted by F22Rapture View Post
Always back up your critical files.
Yep. Definitely let this be a lesson. However, matches start in a matter of hours, so let's do our best to get the robot running.

Quote:
Originally Posted by Reggie335 View Post
1.Language: Labview (Which Language Do you prefer )
2.Our DriveBase Consist of 2 Wheel Drive each Motor Is Controlled By A Jaguars (2 Jaguars total)
3.Our Shooter consist two Motor's Controlled By two Victor 888 Motor Controllers
4.Our Pneumatic System Consist Of Two Air Cylinder which are Controlled By One Double Solenoid Each

(Thanks For Helping Us )
The last time I used LabVIEW for a robot was 2010, but hopefully the following advice helps. (I'm much more familiar with Java, but you should use whatever your team knows best, not what some random guy on the internet likes.)

If you don't know where to start, check out these links:The first two are probably the most helpful.

From what I can tell, here's what you'd have to do to get a basic teleop working:
  • The project has basic arcade drive built-in, so just make sure the port numbers for your drivetrain are right in Begin.vi and that should work.
  • In Begin.vi, make sure all of your motors, pneumatics, and joysticks are initialized.
  • In Teleop.vi, you need to link joystick inputs to various motor and pneumatic actions. The drive is done already, which leaves the shooter and pneumatics. Use the built-in drive as an example of how to do this.
Given that I'm not good at LabVIEW, that I don't know exactly how you want your controls to work, and that it's kind of late at night, I can't give much specific help. I have a feeling that you may need shift registers for things like turning your shooter or pneumatics on or off with buttons.

Hope that helps!
Reply With Quote
  #7   Spotlight this post!  
Unread 08-03-2013, 06:57
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Programming Help.

If necessary, start installing the tools immediately and let the CSA or other officials at the event know what you need help with. It should only take an hour to write the code the second time and perhaps an hour to test and tweak it.

I once helped a team from Puerto Rico rewrite their code in 30 minutes -- I don't speak much Spanish. His English was pretty good, but he wasn't the programmer and had never used LV before. I sat in the back seat and he drove. It was a fun experience for both of us.

Whatever you produce, make a backup, or two, with good names. Then give the backups to different dependable people. Consider how you could prevent getting in this situation the next time.

Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 08-03-2013, 10:09
chris.boyle's Avatar
chris.boyle chris.boyle is offline
Programming Mentor
FRC #0068 (Truck Town Thunder)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Truck Town Thunder (Brandon)
Posts: 36
chris.boyle is on a distinguished road
Re: Programming Help.

Here is one thing that we have done to help avoid this problem. We have implemented a shared drive with Google Drive - all members of the programming team have access to it. When a change / update to the code is made a backup copy is copied to the local share directory and it is then synchronized to Google Drive.

I am enclosing a copy of the batch file we use and an executable called now.exe (source code included) to get the current date and time. Just copy now.exe to a location in your path and add BackupCode.bat to you LABView project under the My Computer folder. Anytime you want a backup of your current code, double click "BackupCode.bat"

Note: You will have to modify the BackupCode.bat to point to the correct directories and project name.
Attached Images
File Type: bmp Project.bmp (322.8 KB, 20 views)
Attached Files
File Type: zip BackupProject.zip (23.6 KB, 6 views)
__________________
2014 Chairman's Award--Michigan State Championship
2014 Chairman's Award--Waterford District
2014 Winner--Great Lakes Bay District
2013 Chairman's Award--Kettering District
2012 Championship Division Finalists--Thanks 330 and 639
Reply With Quote
  #9   Spotlight this post!  
Unread 08-03-2013, 11:07
toastnbacon toastnbacon is offline
Registered User
AKA: James
FRC #3169 (Saintborgs)
Team Role: College Student
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Edmond
Posts: 97
toastnbacon is a jewel in the roughtoastnbacon is a jewel in the roughtoastnbacon is a jewel in the roughtoastnbacon is a jewel in the rough
Re: Programming Help.

Our team programs in labview, and we are eager to help in any way we can! Do you still need assistance, or are you getting help there?
__________________
"This must be what going insane feels like."-Simon Tam, Firefly
Reply With Quote
  #10   Spotlight this post!  
Unread 08-03-2013, 20:43
Reggie335 Reggie335 is offline
Registered User
AKA: Reginald
FRC #4297 (WeNoRobots)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Birmingham, AL
Posts: 68
Reggie335 is an unknown quantity at this point
Re: Programming Help.

Quote:
Originally Posted by toastnbacon View Post
Our team programs in labview, and we are eager to help in any way we can! Do you still need assistance, or are you getting help there?
Yes, i Still need Help i am not a programmer, but i am good with computer's
Reply With Quote
  #11   Spotlight this post!  
Unread 08-03-2013, 22:21
arun4444 arun4444 is offline
Registered User
FRC #3760
 
Join Date: Jan 2013
Location: Bronx
Posts: 26
arun4444 has a little shameless behaviour in the past
Re: Programming Help.

The problem with lab-view is it takes forever to install/program and upload.

i'd recommend java if you want to do something quick.

Go through this step by step and you should be fine.

http://wpilib.screenstepslive.com/s/3120/m/7885
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 17:30.

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