Go to Post My code mentors once told me, "A good programmer can look at a library, decide he hates it, and code everything from scratch. An amazing programmer can look at a library, decide he hates it, but realize the time it will save him and learn to use it." - slavik262 [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
  #31   Spotlight this post!  
Unread 14-03-2011, 20:08
MagiChau's Avatar
MagiChau MagiChau is offline
Registered User
AKA: Michael Chau
FRC #0085 (B.O.B. (Built on Brains))
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Zeeland, Michigan
Posts: 875
MagiChau is just really niceMagiChau is just really niceMagiChau is just really niceMagiChau is just really nice
Re: Programming teams

Quote:
Originally Posted by davidthefat View Post
1 person with 8 years of programming experience, another with 6 years(me), and I am not sure about the third one, but he is one brilliant fellow. There are the other stragglers that really never did anything at all.

I will be training up 3 freshmen, we will actually have female programmers next year .
You are going to teach them all to abuse if then statements like proper programmers should right?
  #32   Spotlight this post!  
Unread 14-03-2011, 20:15
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Programming teams

Quote:
Originally Posted by MagiChau View Post
You are going to teach them all to abuse if then statements like proper programmers should right?
Actually, I am almost scared of if statements with more than 3 if then statements. I try to keep them at 2 or under. Or, in fact, even eliminate them. Well personally I think that comes with experience. Or it might just be my strange personality. I try to find that one equation that can do a whole bunch of if then statements can do. That is why I had so many feuds with the other programmer; he tries to code high level and I try to code the lowest level I can.

I think programming styles differ from one person to another. I was a if then statement spammer in my earlier years; but I just changed somehow. But I always stay away from recursive functions or anything like that. My mind functions more efficiently with equations rather than whatever you call recursive functions.

edit: This is what I mean; my drive code:
Code:
if(y <= pow(x, 2)/3 + 0.2 && y >= pow(x, 2)/-3 - 0.2)//pow is x^2 It is the dead zone for zero point turning. We can live with the else statement. 
{
pwm1 = x * 127 + 128;
pwm2 = x * 127 + 128;
}
else
{
pwm1 = (pow(y, 3) * 127 + 128) + (pow(x, 3) * 70);//x^3
pwm2 = (pow(y, 3) * 127 + 128) - (pow(x, 3) * 70);
}
regulate();//Just makes sure it does not go out of range
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.

Last edited by davidthefat : 14-03-2011 at 20:27.
  #33   Spotlight this post!  
Unread 14-03-2011, 22:14
Anupam Goli's Avatar
Anupam Goli Anupam Goli is offline
PCH Q&A co-founder/Scouting Mentor
AKA: noops
FRC #1648 (G3 Robotics)
Team Role: Mentor
 
Join Date: Dec 2010
Rookie Year: 2008
Location: Atlanta, Georgia
Posts: 1,242
Anupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond repute
Re: Programming teams

Our team has 2 programmers (me and one other person), and I am also the electronics person (wired the robot myself). No mentors. We also have 1 other person who is not a programmer, but is very good at math who usually derives the math equations, and we write them into algorithms. (we have a ridiculous double jointed arm that would extend the 84" perimeter, so we had to derive an equation that took two angles and constantly checked if the position of the arm was out of bounds).

I'll train a junior next year before I leave, but I sort of feel proud that i did the wiring and half the programming myself. I had no documentation other than standard FRC documentation and the previous year leader left almost nothing to go off other than the completed robot (with no sensors or anything other than a compressor and 4 pwm jags) and half-working code.
__________________
Team 1002: 2008-2012
Team 1648: 2012-2016
Georgia Tech Class of 2016
  #34   Spotlight this post!  
Unread 15-03-2011, 00:39
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 333
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: Programming teams

Our team has 2 mentors and 8-10 students. We use SVN and google groups for collaboration. We've been pretty lucky this year with some good code written by the students and the opportunity to test major subsystems before the robot shipped. Still lots of code that needs to be tested before the New Orleans Regional, but at least there is code for most of the systems that has sort of been tested.

We write in C++. Unfortunately, most of our students had little or no experience in writing code when we started the pre-season. We spent the first several months of the school year teaching them coding concepts, variable types, control structures and giving them test problems that could be run on their PCs. We also went through all of the control systems, sensors types and how they interact. It was a lot of work, but most of the students stepped up to the plate.

Fortunately, only a couple of the students are seniors. So, with any luck, we'll get several of them back for next season.
  #35   Spotlight this post!  
Unread 15-03-2011, 01:00
Businessman41 Businessman41 is offline
Registered User
FRC #3805
 
Join Date: Jan 2011
Location: Spokane
Posts: 13
Businessman41 is an unknown quantity at this point
Re: Programming teams

Our team has three members in the computer/electronics squad. I am the only one who has consistently come, and therefore am the only one who knows how everything works as a whole. Therefore, I do all the programming and the other two watch and provide insite and point out mistakes I miss.
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 05:16.

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