Go to Post Temp wiring is always bad but it is made worse when dealing with a $1000 part. You wouldn't try to lash a makeshift power source to your PC. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 20-08-2012, 14:36
ctccromer's Avatar
ctccromer ctccromer is offline
Animus
AKA: Tucker Campbell
FRC #3753 (Bulah Bots)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Baton Rouge, Louisiana
Posts: 190
ctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to all
Re: Tips for first-year programmers

thanks for the links ^^ i'll check those out tonight

Quote:
Originally Posted by DominickC View Post
It's easy to get overwhelmed. Don't get overwhelmed, just keep working at things a little bit at a time. (Oh, and don't forget to have fun!)
Oh definitely! I'm startin early -- gonna code for last year's robot while I get used to it, that way once the coming season starts I won't be overwhelmed

Also, I forgot to mention: The last 2 years (our first 2), we've used Joysticks. However, being a huge gamer, I'm switching to the xbox360-like controller. So any tips on how this is different will help too!
__________________
Team 3753 BulahBots
  #2   Spotlight this post!  
Unread 20-08-2012, 15:29
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,112
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: Tips for first-year programmers

Quote:
Originally Posted by ctccromer View Post
Also, I forgot to mention: The last 2 years (our first 2), we've used Joysticks. However, being a huge gamer, I'm switching to the xbox360-like controller.
Are you doing this as a driver who prefers a handheld controller to joysticks for driving a robot, or are you doing it as a programmer who's imposing his preference on the drivers? Give proper consideration to the people who actually have to use what you come up with.

Quote:
So any tips on how this is different will help too!
Gamepad thumbsticks don't give a driver nearly the same amount of fine control that you can get from joysticks. If you can account for that in software, great. Otherwise, make sure the drivers are happy with what they get.

A gamepad puts more buttons within immediate reach of an operator's fingers than a joystick does. Some people find that useful. Others find it confusing, and prefer the more spread-out button layout of one of the USB joysticks from the Kit of Parts.

On the other hand, sometimes the most intuitive and effective control scheme is neither a joystick nor a gamepad, but instead a custom array of buttons and/or switches and/or knobs.
  #3   Spotlight this post!  
Unread 20-08-2012, 16:50
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,729
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Tips for first-year programmers

Anytime I see a thread list this, I can't help but think about a session I attended at Java one a few years ago by the "Diabolical Developer", in which he suggested we should teach programming by sitting someone down at a unix prompt, typing "man man", hitting enter, and then leaving the room!

My top, number 1 suggestion for you: Reprogram last year's robot this fall. Start from scratch, and don't reuse any code from last year. Once you can get it up and running again with all of your own code, you'll know you're ready to tackle the new robot on day 1 of the build season.
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
  #4   Spotlight this post!  
Unread 20-08-2012, 18:23
ctccromer's Avatar
ctccromer ctccromer is offline
Animus
AKA: Tucker Campbell
FRC #3753 (Bulah Bots)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Baton Rouge, Louisiana
Posts: 190
ctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to all
Re: Tips for first-year programmers

Quote:
Originally Posted by Alan Anderson View Post
Are you doing this as a driver who prefers a handheld controller to joysticks for driving a robot, or are you doing it as a programmer who's imposing his preference on the drivers? Give proper consideration to the people who actually have to use what you come up with.
I will be one of the 4 main drivers. The controller is much easier for me and I asked the other 3 guys if they care one way or the other and they didn't seem to have any opinion. I don't see how y'all can stand the giant joysticks!

Quote:
Originally Posted by Jon Stratis View Post
My top number 1 suggestion for you: Reprogram last year's robot this fall. Start from scratch, and don't reuse any code from last year. Once you can get it up and running again with all of your own code, you'll know you're ready to tackle the new robot on day 1 of the build season.
DEFINITELY! My teacher and I already decided on this last year, and I'm about to put LabVIEW on my new laptop and start learning it later this week or next week, so I wanted to post here FIRST to go ahead and get in the right mindset and make sure there isn't anything I simply forget
__________________
Team 3753 BulahBots
  #5   Spotlight this post!  
Unread 20-08-2012, 18:28
ctccromer's Avatar
ctccromer ctccromer is offline
Animus
AKA: Tucker Campbell
FRC #3753 (Bulah Bots)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Baton Rouge, Louisiana
Posts: 190
ctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to all
Re: Tips for first-year programmers

Okay so my first REAL question question (for those of you that have used controllers before):
I'm looking for a controller as identical to an xbox 360 controller as possible.
1) I think I remember someone telling me you can use a normal x360 controller if you install a driver for it. Is this true? If so I'll just buy a cable to make my wireless controller wired, download the driver, and things'll be super easy!
2) If not, then is the controller on the right in the picture what I need to get? Is there something better? Any idea where I could buy this?
http://techgage.com/reviews/logitech...m_07_thumb.jpg

Once again, HUGE thanks to everyone for all the help!
__________________
Team 3753 BulahBots
  #6   Spotlight this post!  
Unread 20-08-2012, 20:35
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: Tips for first-year programmers

you can use a normal xbox controller with windows, but it can't be wireless. you have to actually have a wired only controller, as just connecting a cable won't route the data to the PC, for a wireless controller, you need the windows gaming adapter. If memory serves, that type of wireless network is not permitted on the field.
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
  #7   Spotlight this post!  
Unread 20-08-2012, 21:07
Ekcrbe's Avatar
Ekcrbe Ekcrbe is offline
When can I watch Einstein again?
AKA: Erik Boyle
FRC #4640 (Metallic Panthers)
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: New York, NY
Posts: 317
Ekcrbe has a reputation beyond reputeEkcrbe has a reputation beyond reputeEkcrbe has a reputation beyond reputeEkcrbe has a reputation beyond reputeEkcrbe has a reputation beyond reputeEkcrbe has a reputation beyond reputeEkcrbe has a reputation beyond reputeEkcrbe has a reputation beyond reputeEkcrbe has a reputation beyond reputeEkcrbe has a reputation beyond reputeEkcrbe has a reputation beyond repute
Re: Tips for first-year programmers

Quote:
Originally Posted by ctccromer View Post
Okay so my first REAL question question (for those of you that have used controllers before):
I'm looking for a controller as identical to an xbox 360 controller as possible.
1) I think I remember someone telling me you can use a normal x360 controller if you install a driver for it. Is this true? If so I'll just buy a cable to make my wireless controller wired, download the driver, and things'll be super easy!
2) If not, then is the controller on the right in the picture what I need to get? Is there something better? Any idea where I could buy this?
http://techgage.com/reviews/logitech...m_07_thumb.jpg

Once again, HUGE thanks to everyone for all the help!
I don't have any experience running a drivetrain off a gamepad, or what is applicable to use, but I imagine the offset joysticks from the XBox 360 could make driving a little funky. Logitech sells the F310, which I think would work well for an FRC Driver Station if you love the 360 layout, with the aligned sticks.

P.S. We used a Dual Action gamepad for our manipulator control this year, and I really like it, but it doesn't have analog triggers.
__________________
Four years of FRC 68 Truck Town Thunder
2012 Championship Newton Division Finalists—Thanks 330 and 639 for the Full Court Press!
2013 Kettering University District Chairman's Award Winners!
2014 Great Lakes Bay Region District Winners—Thanks 288, 4819, and 5166! | 2014 Waterford District Chairman's Award Winners! | 2014 Michigan FRC State Championship Chairman's Award Winners—Congratulations 33 and 503!
2015 Center Line District Chairman's Award Winners! | 2015 Lansing District Winners—Thanks 314 and 1684! | 2015 FIRST in Michigan District Championship Chairman's Award Winners—Congratulations 503 and 2137!


  #8   Spotlight this post!  
Unread 20-08-2012, 21:46
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: Tips for first-year programmers

Quote:
Originally Posted by Ekcrbe View Post
I don't have any experience running a drivetrain off a gamepad, or what is applicable to use, but I imagine the offset joysticks from the XBox 360 could make driving a little funky. Logitech sells the F310, which I think would work well for an FRC Driver Station if you love the 360 layout, with the aligned sticks.

P.S. We used a Dual Action gamepad for our manipulator control this year, and I really like it, but it doesn't have analog triggers.
I would suggest not using tank drive, but rather using a split-thumbstick arcade mode (with one thumbstick being forward movement and a separate one for turning) or one thumbstick for turning and the triggers for throttle. Tank drive is difficult to drive straight in the best of circumstances, but the implicit inaccuracy of the thumbsticks compared to joysticks makes it even more difficult.

Also keep in mind that the Xbox controller has a large deadzone in the middle of the stick that needs to be accounted for, otherwise it won't center properly. The logitech controllers and joysticks don't seem to have that issue so much.

We haven't tried an Xbox controller yet, due to money issues and lack of a workable testbed robot, but I have the code complete for one. Keep in mind I haven't tested it yet.
https://github.com/FRCTeam3737/2012-...aptors/OI.java

Last edited by F22Rapture : 20-08-2012 at 21:55.
  #9   Spotlight this post!  
Unread 20-08-2012, 21:55
Ekcrbe's Avatar
Ekcrbe Ekcrbe is offline
When can I watch Einstein again?
AKA: Erik Boyle
FRC #4640 (Metallic Panthers)
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: New York, NY
Posts: 317
Ekcrbe has a reputation beyond reputeEkcrbe has a reputation beyond reputeEkcrbe has a reputation beyond reputeEkcrbe has a reputation beyond reputeEkcrbe has a reputation beyond reputeEkcrbe has a reputation beyond reputeEkcrbe has a reputation beyond reputeEkcrbe has a reputation beyond reputeEkcrbe has a reputation beyond reputeEkcrbe has a reputation beyond reputeEkcrbe has a reputation beyond repute
Re: Tips for first-year programmers

Quote:
Originally Posted by F22Rapture View Post
I would suggest not using tank drive, but rather using a split-thumbstick arcade mode (with one thumbstick being forward movement and a separate one for turning) or one thumbstick for turning and the triggers for throttle. Tank drive is difficult to drive straight in the best of circumstances, but the implicit inaccuracy of the thumbsticks compared to joysticks makes it even more difficult.

Also keep in mind that the Xbox controller has a large deadzone in the middle of the stick that needs to be accounted for, otherwise it won't center properly. The logitech controllers and joysticks don't seem to have that issue so much.
If that works better, that's fine. We used tank drive, so that was the first thought I had. I find that if most of your time is spent using the left stick and buttons, the XBox setup works better, but swapping the left stick and d-pad is more intuitive when both thumbs are on the joysticks. Just personal preference.
__________________
Four years of FRC 68 Truck Town Thunder
2012 Championship Newton Division Finalists—Thanks 330 and 639 for the Full Court Press!
2013 Kettering University District Chairman's Award Winners!
2014 Great Lakes Bay Region District Winners—Thanks 288, 4819, and 5166! | 2014 Waterford District Chairman's Award Winners! | 2014 Michigan FRC State Championship Chairman's Award Winners—Congratulations 33 and 503!
2015 Center Line District Chairman's Award Winners! | 2015 Lansing District Winners—Thanks 314 and 1684! | 2015 FIRST in Michigan District Championship Chairman's Award Winners—Congratulations 503 and 2137!


  #10   Spotlight this post!  
Unread 22-08-2012, 12:10
ctccromer's Avatar
ctccromer ctccromer is offline
Animus
AKA: Tucker Campbell
FRC #3753 (Bulah Bots)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Baton Rouge, Louisiana
Posts: 190
ctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to all
Re: Tips for first-year programmers

I finally put LabVIEW on my laptop yesterday and I'm currently looking around the forums to decide which controller I want to use. I'm an xbox guy, not a playstation guy, meaning I like the dpad and the left joystick switched -- it's much more comfortable! However I've read a lot of people say that the joysticks on xbox controllers don't center at 0. I don't know if it's a huge issue or an easy fix, and I don't know if there's other issues as well.
I already know it has to be a 100% wired controller and I have to download a driver for it, but that's no big deal
1) Are there any other issues with xbox controllers besides the centering issue? How do you fix this?
2) If this IS an issue large enough to mean that I shouldn't get an xbox controller, that leaves me between the Logitech F310 and F510. As far as I know, the only differences are that the F510 costs $10 more, has a 4th button in the middle, and can vibrate. Does the vibration ever come in handy that much? I could imagine it being useful for a wide variety of things, but I could also easily see us not using the feature at all.
__________________
Team 3753 BulahBots
  #11   Spotlight this post!  
Unread 22-08-2012, 13:20
BigJ BigJ is online now
Registered User
AKA: Josh P.
FRC #1675 (Ultimate Protection Squad)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Milwaukee, WI
Posts: 944
BigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond repute
Re: Tips for first-year programmers

Quote:
Originally Posted by ctccromer View Post
I finally put LabVIEW on my laptop yesterday and I'm currently looking around the forums to decide which controller I want to use. I'm an xbox guy, not a playstation guy, meaning I like the dpad and the left joystick switched -- it's much more comfortable! However I've read a lot of people say that the joysticks on xbox controllers don't center at 0. I don't know if it's a huge issue or an easy fix, and I don't know if there's other issues as well.
I already know it has to be a 100% wired controller and I have to download a driver for it, but that's no big deal
1) Are there any other issues with xbox controllers besides the centering issue? How do you fix this?
2) If this IS an issue large enough to mean that I shouldn't get an xbox controller, that leaves me between the Logitech F310 and F510. As far as I know, the only differences are that the F510 costs $10 more, has a 4th button in the middle, and can vibrate. Does the vibration ever come in handy that much? I could imagine it being useful for a wide variety of things, but I could also easily see us not using the feature at all.
Programming different controllers should be relatively similar (except for button mapping differences), so I would work with the driver(s) to see what they want to use. They might even prefer joysticks to pad.
  #12   Spotlight this post!  
Unread 17-09-2012, 15:18
mjcoss mjcoss is offline
Registered User
FRC #0303
 
Join Date: Jan 2009
Location: Bridgewater,NJ
Posts: 70
mjcoss is a jewel in the roughmjcoss is a jewel in the roughmjcoss is a jewel in the roughmjcoss is a jewel in the rough
Re: Tips for first-year programmers

Over the years we've used a number of different controllers. And every year, I have the programming team sit down with the drivers to work out how they want to control the robot. We test drive with xbox and joysticks, and even one year a steering wheel.

We tend to always end up with joysticks for tank driving, and an xbox controller for co-pilot operations. The single xbox controller gives us a lot of flexibility with regards to buttons, and just ease of use for the co-pilot.
  #13   Spotlight this post!  
Unread 18-09-2012, 23:11
tcjinaz tcjinaz is offline
Tim
FRC #3853
Team Role: Mentor
 
Join Date: May 2011
Rookie Year: 2011
Location: Arizona
Posts: 205
tcjinaz has a spectacular aura abouttcjinaz has a spectacular aura about
Re: Tips for first-year programmers

Quote:
Originally Posted by Jon Stratis View Post
Anytime I see a thread list this, I can't help but think about a session I attended at Java one a few years ago by the "Diabolical Developer", in which he suggested we should teach programming by sitting someone down at a unix prompt, typing "man man", hitting enter, and then leaving the room!

My top, number 1 suggestion for you: Reprogram last year's robot this fall. Start from scratch, and don't reuse any code from last year. Once you can get it up and running again with all of your own code, you'll know you're ready to tackle the new robot on day 1 of the build season.
I tried the former with mu son. He came back some days later with "Dad, what will rm -rf /* do?"
__________________
Software Mentor
3853 Pridetronics[

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 20:38.

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