Go to Post Besides, if you look back on anything you've already made and can't find any flaws that can be improved, you're doing it wrong. - artdutra04 [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-01-2015, 02:09
Pikaqiu Pikaqiu is offline
Registered User
FRC #5700
 
Join Date: Dec 2014
Location: San Francisco
Posts: 2
Pikaqiu is an unknown quantity at this point
Programming Guidance Requested

Hello,

I am in the programming department of rookie team #5700. I have a year of experience with C++, but I find it rather difficult to tie in my knowledge of C++ with what is required of FRC Robotics. My trouble is comprehending and digesting the large amount of knowledge contained in the WPILIB.

Could anybody share pointers on how to begin coding the robot in general? I.e where should I start. Do I start coding with the drivetrain? Do I start with the jaguar?

Also, our hardware team is rather inefficient and we are not able to coordinate with them. So, I was wondering what I could do to start developing code on our own.

Thank you in advanced for any help you provide.

Best regards,
Jeff
  #2   Spotlight this post!  
Unread 16-01-2015, 03:56
pensono pensono is offline
Registered User
FRC #5495
 
Join Date: Jan 2015
Location: Snohomish, WA
Posts: 15
pensono is an unknown quantity at this point
Re: Programming Guidance Requested

I would go through and figure out how to do things one thing at a time. First, figure out how to turn on motors, then hook them up to a joystick, then learn how to get a button and an axis to work on a joystick. Keep moving through every little thing until you can use everything your team needs. Skip things like pneumatics, unless your team is planning on using them. There are 20 or so example projects that cover most parts of the library too.
  #3   Spotlight this post!  
Unread 16-01-2015, 04:30
sergioCorral842's Avatar
sergioCorral842 sergioCorral842 is offline
College Student
FRC #0842 (Falcon Robotics)
Team Role: Alumni
 
Join Date: Aug 2011
Rookie Year: 2012
Location: Phoenix, Arizona
Posts: 161
sergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to behold
Re: Programming Guidance Requested

If you have not already, check out :
http://wpilib.screenstepslive.com/s/4485

This shows how to run basic functions in C++, Java, and Labview
__________________
Team 842 Falcon Robotics: 2011-2015 (President, Head Programmer, Drive Team)
Arizona Regional Winners: 2012-2014 (Thanks 610, 1212, 1726, 3944, 2486, 2403)
Curie Division Semi-Finalists: 2014 (Thanks 1311, 2013, 2928)
Las Vegas Semi-Finalists: 2015 (Thanks 3495, 4415)
Curie Division Quarter-Finalists: 2015 (Thanks 107, 228, 649)

2015 - 2016: Programming, Drive Team, and Strategy Mentor for Team 3187, The Titans

Studying Computer Science- Software Engineering at ASU (Class of 2019)
  #4   Spotlight this post!  
Unread 16-01-2015, 04:53
JohnFogarty's Avatar
JohnFogarty JohnFogarty is offline
Trapped under a pile of MECANUMS :P
AKA: @doctorfogarty
FTC #11444 (Garnet Squadron) & FRC#1102 (M'Aiken Magic)
Team Role: Mentor
 
Join Date: Aug 2009
Rookie Year: 2006
Location: SC
Posts: 1,579
JohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond repute
Re: Programming Guidance Requested

Send me an PM. I'd be more than happy to give you a crash course on knowledge you need to have your robot perform at a level that you desire.
__________________
John Fogarty
2010 FTC World Championship Winner & 2013-2014 FRC Orlando Regional Winner
Mentor FRC Team 1102 M'Aiken Magic
"Head Bot Coach" FTC Team 11444 Garnet Squadron
Former Student & Mentor FLL 1102, FTC 1102 & FTC 3864, FRC 1772, FRC 5632
2013 FTC World Championship Guest Speaker
  #5   Spotlight this post!  
Unread 16-01-2015, 07:54
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 524
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Programming Guidance Requested

We started down the C++ path over the offseason, but with the roborio introduction we decided to stick with labview this year.

While researching and working with C++, I was pointed to Hot (FRC67) teams resources for C++.

I found these pages to be most helpful.

https://code.google.com/p/hot67-prog...Main_Page?tm=6
__________________
The sooner we get behind schedule, the more time we have to catch up.

  #6   Spotlight this post!  
Unread 21-01-2015, 23:15
Jay Meldrum's Avatar
Jay Meldrum Jay Meldrum is offline
Registered User
FRC #0067 (H.O.T.)
Team Role: Engineer
 
Join Date: Jan 2012
Rookie Year: 2003
Location: Michigan
Posts: 42
Jay Meldrum has much to be proud ofJay Meldrum has much to be proud ofJay Meldrum has much to be proud ofJay Meldrum has much to be proud ofJay Meldrum has much to be proud ofJay Meldrum has much to be proud ofJay Meldrum has much to be proud ofJay Meldrum has much to be proud ofJay Meldrum has much to be proud of
Re: Programming Guidance Requested

Quote:
Originally Posted by tr6scott View Post
While researching and working with C++, I was pointed to Hot (FRC67) teams resources for C++.

I found these pages to be most helpful.

https://code.google.com/p/hot67-prog...Main_Page?tm=6
Scott: I'm glad they helped you out a bit!

Jeff: We are currently in the process of porting most of that over to our main site and have updated it a bit to include some of the updates this year. A very motivated student is also currently making a video series on each lesson as well.

Directly link to the WPI tutorials can be found here:
http://www.hotteam67.org/programming...tutorials/wpi/


Here the tutorials starts to get into the basic layout of the code:
http://www.hotteam67.org/programming...ram-structure/
__________________
2012-2015 - FRC 67 - Programming/Controls Lead Mentor
2003-2005 - FRC 857 - Driver

Check us out at http://www.hotteam67.org
Previous year design docs, programming tutorials, and more!

Last edited by Jay Meldrum : 21-01-2015 at 23:18.
  #7   Spotlight this post!  
Unread 22-01-2015, 00:43
xisybyl xisybyl is offline
Registered User
FRC #3648
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Denver
Posts: 34
xisybyl is an unknown quantity at this point
Re: Programming Guidance Requested

Jeff: Put away the C++ and install LabVIEW. See
http://www.teamrush27.net/documents
and click on "LabVIEW Robot" and "LabVIEW Intro" (thanks to team 27). Complete code for a joystick controlled 2-motor robot is provided with LabVIEW as well as examples for most sensors (limit switches, encoders).

You won't regret it. LabVIEW is used by most aerospace companies to control test instrumentation. I would be surprised if your robot running the base code (2 or 4 motors and a joystick) isn't running in a few hours.
  #8   Spotlight this post!  
Unread 22-01-2015, 01:01
Monochron's Avatar
Monochron Monochron is offline
Engineering Mentor
AKA: Brian O'Sullivan
FRC #4561 (TerrorBytes)
Team Role: Engineer
 
Join Date: Feb 2007
Rookie Year: 2002
Location: Research Triangle Park, NC
Posts: 910
Monochron has a reputation beyond reputeMonochron has a reputation beyond reputeMonochron has a reputation beyond reputeMonochron has a reputation beyond reputeMonochron has a reputation beyond reputeMonochron has a reputation beyond reputeMonochron has a reputation beyond reputeMonochron has a reputation beyond reputeMonochron has a reputation beyond reputeMonochron has a reputation beyond reputeMonochron has a reputation beyond repute
Re: Programming Guidance Requested

Quote:
Originally Posted by xisybyl View Post
Jeff: Put away the C++ and install LabVIEW.
This isn't good advice to give to a new student (I'm assuming the OP is a student). If a student or team wants to learn a language there are mountains of resources available through the FIRST community to help them. Some of the best have already been posted and I hope that the OP can get some one-on-one time with mentors familiar with programming in C++. My old teammate, John, up there already offered to personally help him out.


To the OP: Do you know what other veteran teams are nearby you? I'm sure many of them would be willing to spend some time getting up to the point where you can turn motors and map joysticks to commands.
  #9   Spotlight this post!  
Unread 22-01-2015, 01:46
xisybyl xisybyl is offline
Registered User
FRC #3648
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Denver
Posts: 34
xisybyl is an unknown quantity at this point
Re: Programming Guidance Requested

Since you have only a few short weeks left till "bag & tag", you might consider postponing the C++ learning till after that date and make the various robot functions work with LabVIEW for now.
Closed Thread


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 00:59.

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