OCCRA
Go to Post I'm not overdosed, I'm not even addicted. I just choose to never, ever, ever leave FIRST. - SL8 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Events   CD-Media   CD-Spy   FRC-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 9 votes, 5.00 average. Display Modes
  #46   Spotlight this post!  
Unread 01-15-2006, 08:47 PM
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Programming - Getting Started

Quote:
Originally Posted by brianoconnor2f2
Hey Thanks fellas This is my first year and I'm a programmer and am used to C++, C isnt much different but I still need all the help I can get. Thanks.

-Matt
There are many very willing people on CD... just remember we aren't mind readers. When you run into a question you can't find an answer to, ask that specifically.
__________________

  #47   Spotlight this post!  
Unread 01-16-2006, 04:09 PM
Packmon's_girl's Avatar
Packmon's_girl Packmon's_girl is offline
Rei, and guys...stop being so male
AKA: Rebekah Olson
FRC #1918 (Packman)
Team Role: Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Fremont
Posts: 61
Packmon's_girl is an unknown quantity at this point
Send a message via AIM to Packmon's_girl Send a message via MSN to Packmon's_girl Send a message via Yahoo to Packmon's_girl
Re: Programming - Getting Started

I tried to get a look at the dogle, and sorry for spelling mistakes now, but the link would not work.
  #48   Spotlight this post!  
Unread 01-16-2006, 04:28 PM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Itinerant Programmer
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 7,453
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Programming - Getting Started

Here’s an AndyMark dongle you can purchase.

Here’s the wiring schematic so you can make your own.
__________________
The mind sees only what the mind is prepared to comprehend - Henri Bergson
358 Beta notes & results
  #49   Spotlight this post!  
Unread 01-19-2006, 04:22 PM
MattK's Avatar
MattK MattK is offline
Tap it.
no team
 
Join Date: Jul 2002
Location: Manchester
Posts: 1,084
MattK is a splendid one to beholdMattK is a splendid one to beholdMattK is a splendid one to beholdMattK is a splendid one to beholdMattK is a splendid one to beholdMattK is a splendid one to beholdMattK is a splendid one to beholdMattK is a splendid one to behold
Send a message via AIM to MattK
Re: Programming - Getting Started

Quote:
Originally Posted by Mark McLeod
Here’s an AndyMark dongle you can purchase.

Here’s the wiring schematic so you can make your own.
Will these work with the '06 controler? Will a dongle bridging 5 and 8 activate autonomous?
__________________
The views expressed in my posts are Mine and mine only.

my myspace!
  #50   Spotlight this post!  
Unread 01-21-2006, 11:35 AM
pclements's Avatar
pclements pclements is offline
Registered User
AKA: Patrick
FRC #1254 (Entropy)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Lawrence
Posts: 18
pclements is an unknown quantity at this point
Send a message via Yahoo to pclements
Re: Programming - Getting Started

Quote:
Originally Posted by CrashZero
This is a good overview. But all you people talking about having programming "teams" i ask you : how is it that you get a team, for my team its always just me. And new programmers out there don't be discuraged when you get blamed for *every* problem the robot has. And don't think that you will get any fame out of the robot even if it does work. Everyone else in the team gets that. But hey us programmers get to have all the fun so i soppose it's a fair trade.
I think that every body works hard as a team, there is no programmers if their is no robot! i think that some people need to get their priorities straight. if the robot is not built properly then their is no reason that programmers are needed. I have been trying to tell that to my fellow programmers that think their super man too.
__________________
Does the walker choose the path, or the path the walker?" -- Garth Nix
  #51   Spotlight this post!  
Unread 01-22-2006, 11:32 AM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Itinerant Programmer
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 7,453
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Programming - Getting Started

Quote:
Originally Posted by MattK
Will these work with the '06 controler? Will a dongle bridging 5 and 8 activate autonomous?
Yes, the disable and Autonomous switches work on the '06 RC.
The "Practice" switch in the schematic no longer serves a purpose in post-2004 controllers.
__________________
The mind sees only what the mind is prepared to comprehend - Henri Bergson
358 Beta notes & results
  #52   Spotlight this post!  
Unread 05-20-2006, 06:04 AM
aaronm_k aaronm_k is offline
Registered User
no team
 
Join Date: Jan 2006
Rookie Year: 2006
Location:  
Posts: 10
aaronm_k is on a distinguished road
Re: Programming - Getting Started

Quote:
Originally Posted by Noah
1) Programming will take more time than you expect, especially if you want autonomous to work. Tell the team that the robot needs to be driving and in your (the programmer's) hands with at least three days before shipping.
Or, more realistically, expect to spend all of your first Regional testing and debugging the code, since the robot wasn't finished even as it was being put in the crate.

Quote:
Originally Posted by Noah
2) Rookies: Don't program without sleep. Sure, you'll hear the experienced programmers bragging about a 36-hour code marathon, but all that means is that they are good at procrastinating. And working without sleep.
True, you won't be productive without sleep. Still, there's a certain perverse pleasure in being able to say "I slept no more than 4 hours in the 4 nights I spent at Nationals!"

Quote:
Originally Posted by Noah
6) When testing your robot, lift it off the ground. Prop it up somehow. This can save lives! (well, shins, anyways)
Better yet, have the mechanical team build a cart that allows the wheels to spin freely. If you're traveling by car or bus, you can bring it to the Regionals, where they don't let you drive your robot in the pit area. Also, have someone on the OI tether cable or radio modem cable at all times, ready to unplug it if the robot goes crazy. It really does keep people from getting run over by a 150lb robot!
  #53   Spotlight this post!  
Unread 05-20-2006, 11:41 AM
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass Send a message via Skype™ to Matt Krass
Re: Programming - Getting Started

Quote:
Originally Posted by aaronm_k
SNIP!
Also, have someone on the OI tether cable or radio modem cable at all times, ready to unplug it if the robot goes crazy. It really does keep people from getting run over by a 150lb robot!
For that purpose you should really develop an autonomous/disable dongle. The schematic is available from IFIs website here:
http://www.ifirobotics.com/docs/comp...guide-reva.pdf

This allows you to kill the robot from the OI instantly, with no doubt, and test autonomous mode as if the field activated it, so you don't need to play with the autonomous activation code and risk accidentally starting it mid-match (Been there!). I highly recommend a dongle for every team and if you're not confident in your skills at making one you can purchase from AndyMark here:
http://andymark.biz/mode-switch.htm

Some people also go with spring loaded switches, so all you have to do is let go and the robot is disabled, problem with those is they become a pain for longtime testing.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #54   Spotlight this post!  
Unread 09-15-2006, 07:16 PM
Eric Finn's Avatar
Eric Finn Eric Finn is offline
Registered User
FRC #0166 (Chop Shop)
Team Role: College Student
 
Join Date: May 2006
Rookie Year: 2005
Location: Merrimack, NH
Posts: 101
Eric Finn has a spectacular aura aboutEric Finn has a spectacular aura about
Send a message via AIM to Eric Finn
Re: Programming - Getting Started

A few basic tips:
  • Remember, your entire program is basically a loop. As such, you do not need to use loops, just ifs. And anyways, using loops will cause Bad Things™ to happen.
  • Counters should be static.
  • The fast user routines need to be executed in the alloted time. As such, do not do too much inside the fast user routines. You can increment a counter inside the fast user routines and do calculations with it in the slow user routines. If the fast user routine code takes longer than it is allowed to, Bad Things™ will happen.
  • On Software Testing/Ship Day, come early, bring lots of caffeine, bring lights and extension cords, and make sure some electrical and mechanical people are there, along with the tools they need. Do not expect to get to software testing until later in the day. Losing your cool on Software Testing/Ship Day can cause Bad Things™ to happen.
  • Document everything very well.
  • Do not work with input/output (I/O) ports by calling them by name. Use #define. Also, all the names of I/O ports are in IFI_aliases.h.
  • Convert analog input to digital.
  • kevin.org
  • Don't reinvent the wheel.
  • Many software problems can be solved by plugging wires in.
  • Kevin Watson hasn't figured out the accelerometer yet. He was working on it during the 05-06 build season.
  • If you use comment blocks, don't comment out code blocks. Use preprocessor commands (#if 0, #if 1, #else, #endif). If there is a comment block inside a commented-out code block, Bad Things™ will happen.
  • Spelling, semicolons, parenthesis, curly braces.
  • Syntax errors appear on the lines below missing semicolons.
__________________
It always takes longer than you expect, even when you take into account Hofstadter's Law.
--Hofstadter's Law

  #55   Spotlight this post!  
Unread 01-16-2007, 05:23 PM
Bored Bored is offline
Registered User
FRC #1290
 
Join Date: Jan 2007
Location: Chanlder
Posts: 1
Bored is an unknown quantity at this point
Re: Programming - Getting Started

Our main programmer that did most of the work went to a different school so I'm actually going to have to learn to code C this year.
This topic is a real help thanks guys.
  #56   Spotlight this post!  
Unread 01-16-2007, 05:28 PM
udzap's Avatar
udzap udzap is offline
Registered User
FRC #1290
 
Join Date: Jan 2007
Location: Az
Posts: 2
udzap is an unknown quantity at this point
Re: Programming - Getting Started

Cool this is perfect for a beginner programmer as I.
  #57   Spotlight this post!  
Unread 01-16-2007, 08:04 PM
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 341
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Re: Programming - Getting Started

Mark,
I have already looked for some articles on autonomous programming and have found a few. Do you have a favorites list or best list for less experience autonomous programmers?
__________________
Marc Center
FIRST FRC Mentor - Team 3548 Royal Oak RoboRavens
OCCRA VEX Mentor - 2007-14
GM Propulsion System Engineer
marccenter@yahoo.com
Mobile: 248-255-7377

Msg to Engr College Freshmen: School is now FIRST
and FIRST is now second!
  #58   Spotlight this post!  
Unread 01-17-2007, 12:40 AM
slloyd slloyd is offline
Registered User
AKA: Sonny
FRC #1221 (Nerbotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: CANADA -eh?
Posts: 20
slloyd is an unknown quantity at this point
Thumbs up Re: Programming - Getting Started

hi peoples,

i just registered so that i could thank kevin for his work on the software and making it as dummy proof as possible - believe me i need it!

this is the first year our team has used the camera and it is quite the challenge. your code is readable, i can follow along with your train of thought & our team has a pretty bright student handling the guts of the camera work (i give him the hard stuff, while i just read manuals ). with these three things i think we have a fighting chance at getting a camera functional AND useful!

thx again, keep up the great work!

slloyd
  #59   Spotlight this post!  
Unread 01-17-2007, 12:51 AM
Brad Voracek Brad Voracek is offline
.999~=1
FRC #0399 (Eagle Robotics)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Lancaster, CA (SoCal)
Posts: 328
Brad Voracek is a glorious beacon of lightBrad Voracek is a glorious beacon of lightBrad Voracek is a glorious beacon of lightBrad Voracek is a glorious beacon of lightBrad Voracek is a glorious beacon of light
Send a message via AIM to Brad Voracek
Re: Programming - Getting Started

Where do you guys get your D15 pin connectors for making the autonomous dongle? And also for game ports so you can wire switches to your control box etc... I can't seem to find these anywhere.
  #60   Spotlight this post!  
Unread 01-17-2007, 12:58 AM
Phalanx's Avatar
Phalanx Phalanx is offline
Registered User
AKA: Michael Reffler
FRC #1089 (Mercury)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 1999
Location: Hightstown, NJ
Posts: 375
Phalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond repute
Re: Programming - Getting Started

Quote:
Originally Posted by Brad Voracek View Post
Where do you guys get your D15 pin connectors for making the autonomous dongle? And also for game ports so you can wire switches to your control box etc... I can't seem to find these anywhere.
Everything you should need can be had from Jameco:
15 Conductor 24 AWG Bulk Cable 100ft
http://www.jameco.com/webapp/wcs/sto...roductId=31844

Solder Cup D-Sub Connector, DB15 Male
http://www.jameco.com/webapp/wcs/sto...roductId=15035

Assembled Hood Kit, DB15/HD26 Gray
http://www.jameco.com/webapp/wcs/sto...roductId=15019

Toggle Switches - 2 State
http://www.jameco.com/webapp/wcs/sto...duct Id=76523

Toggle Switches - 3 State
http://www.jameco.com/webapp/wcs/sto...duct Id=21910
__________________
Don't just ask the experts, become one!
Leadership is not about ability. It's about responsibility!
Diagonally Parked in a Parallel Universe. It's okay we do Quantum Physics


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Book on C programming - suggestions? wun Programming 18 01-14-2005 12:12 AM
Help needed for getting started! chantilly_team Programming 4 10-27-2004 08:29 AM
Autonomous Programming Competition Signup List SilverStar Programming 36 05-13-2004 03:09 PM
Robot Programming Education phrontist Programming 11 05-03-2004 07:32 AM


All times are GMT -5. The time now is 09:19 AM.

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


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