Go to Post By the way, safety glasses are so in style now, :) - LightWaves1636 [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 13-01-2008, 00:01
Doug Leppard's Avatar
Doug Leppard Doug Leppard is offline
Registered User
FRC #1902 (Exploding Bacon)
Team Role: Engineer
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Orlando
Posts: 435
Doug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond repute
Send a message via AIM to Doug Leppard
Re: Help, I'm a world class computer programming genius yet I'm totally lost.

John and Alex,

I cut my teeth on the same things as you did. So I know where you are coming from.

As a team we use EasyC Pro. Some will say you must use MPLAB as our team has done years before. But last year we did EasyC Pro and it takes the pain out of programming and provides what you need. Has an environment that allows kids to program. We programmed the VEX machines to work out the problems and then moved the code and concepts to the big robots.

Our team did well last year, voted in CD having best autonomous mode and made it to Einstein (if you are new that means we went to the Atlanta Championships and were one of the final 12 robots in the competition). I only say that because some look down on EasyC Pro but it lets us proto type quickly and we got results. It has a lot of built in stuff, like encoders etc and other routines that you don’t have to worry about doing and just do the core that you need to do for your team.

I would definitely look into it.
__________________
Doug Leppard
  #2   Spotlight this post!  
Unread 13-01-2008, 05:20
pafwl pafwl is offline
Franciose
AKA: Frank Larkin
FRC #0272 (Cyber Crusaders)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 1998
Location: Lansdale, Pennsylvania
Posts: 108
pafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud of
Re: Help, I'm a world class computer programming genius yet I'm totally lost.

I have been doing this for 11 years now. I have given seminars on programming. You do not need to go to great detail for this. When you have time read Kevin's stuff at your lesure but for now you can put it to good use. I have several presentations you can use and as you have a background in C most of the gooey details should be pretty easy to master. You can get these at www.frc272.com.Ideas.

Good luck
  #3   Spotlight this post!  
Unread 13-01-2008, 05:22
pafwl pafwl is offline
Franciose
AKA: Frank Larkin
FRC #0272 (Cyber Crusaders)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 1998
Location: Lansdale, Pennsylvania
Posts: 108
pafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud of
Re: Help, I'm a world class computer programming genius yet I'm totally lost.

Sorry for messing up the URL in my last post. The presentations are at www.frc272.com/Ideas (Capital I in Ideas)


Sorry, fat fingers...
  #4   Spotlight this post!  
Unread 13-01-2008, 05:33
pafwl pafwl is offline
Franciose
AKA: Frank Larkin
FRC #0272 (Cyber Crusaders)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 1998
Location: Lansdale, Pennsylvania
Posts: 108
pafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud of
Re: Help, I'm a world class computer programming genius yet I'm totally lost.

PWM
Pulse Width Modulated output.(byte) Range 0-255, mid range =127. Joystick output. This applies to Speed controller via a control cable (White, red, black). This tells Speed controller how much voltage and polarity. (forward or reverse). You assign joystick value to pwm output.

pwm01 = p3_y; // left driver joystick



Relay
Separate module connected via control cable to Spike Relay controller.
Has two variables _fwd _rev. When controlling motor it will apply full power in foward or reverse.
relay1_fwd = 1;
relay1_rev = 0;

To turn it all off ...
relay1_fwd = 0;
relay1_rev = 0;


Once you compile your code you must download it to micro. Go ti IFI for loader and instructions. Ther eis a default code base that helps get you started.
  #5   Spotlight this post!  
Unread 13-01-2008, 08:48
ebarker's Avatar
ebarker ebarker is offline
Registered User
AKA: Ed Barker
FRC #1311 (Kell Robotics)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Kennesaw GA
Posts: 1,437
ebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond repute
Re: Help, I'm a world class computer programming genius yet I'm totally lost.

very short winded answer.

open default project;
learn user_routines.c - used for default tele operation
learn user_routines_fast.c - used for hybrid/auton operation

download several kevin.org projects, like adc and encoder
carefully READ the readme.txt in these projects. they are precise and step by step.

use something like WINDIFF and examine the differences between the kevin projects and the default project. There you will see how he incrementally added features to the default project.

I use TREECOMP and WINDIFF to do deltas on the projects. There are other tools that do the same.

This is about the fastest quickstart I can think of for an experienced programmer. I would do all of that before jumping into processor datasheets and stuff. There is a LOT of framework that is already done. All you have to do is add your algorithms and go.
__________________
Ed Barker
  #6   Spotlight this post!  
Unread 13-01-2008, 18:01
ShotgunNinja's Avatar
ShotgunNinja ShotgunNinja is offline
Programming Mentor, FRC 4247
AKA: Nicholas Iannone
FRC #4247 (CougarBOTS)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Milwaukee, WI
Posts: 159
ShotgunNinja is a jewel in the roughShotgunNinja is a jewel in the roughShotgunNinja is a jewel in the roughShotgunNinja is a jewel in the rough
Re: Help, I'm a world class computer programming genius yet I'm totally lost.

Quote:
Originally Posted by jratcliff View Post
...I have written a couple of best selling computer games for Electronic Arts, shipped games on numerous platforms and microprocessors, and more recently was the lead engine programmer for the massively multi player online game 'Planetside' for Sony Online Entertainment...
Sorry for getting off-topic for a sec, but A PROFESSIONAL GAME PROGRAMMER, OH MY GOD. That is my LIFELONG DREAM.

You said you've worked for Electronic Arts? What's it like, as a game programmer? I've done some fiddling around with the Source Engine code, and I am trying to get a game project off the ground. Any tips? Things to watch out for? Reasons why Wisconsin is not a good place for game programmers?
__________________
Team #2970 Alum
Team #1652 Alum
2006: School Mascot for Team 1652
2007-2008: Programmer for Team 1652 (Robot Mafia)
2009: Programmer on Team 1652 (Robot Mafia), Programmer on Team 2970 (eSchool eBots)
2010-2016: Volunteer, Wisconsin Regional
2017: Programming Mentor, FRC 4247 (CougarBOTS, Obama SCTE, Milwaukee, WI)

Last edited by ShotgunNinja : 13-01-2008 at 18:07.
  #7   Spotlight this post!  
Unread 15-01-2008, 20:27
bcharbonneau bcharbonneau is offline
Registered User
None #1296 (Full Metal Jackets)
Team Role: Teacher
 
Join Date: Mar 2004
Rookie Year: 2004
Location: Rockwall, TX
Posts: 17
bcharbonneau is an unknown quantity at this point
Re: Help, I'm a world class computer programming genius yet I'm totally lost.

We (Team 1296) are having problems as well. But only on one of our computers. It's giving us an error involving a .cof file but seems to be creating the .hex file anyway. We not far enough along to determine if the .hex file is any good. Any suggestions would be helpful.

Thanks,

C
  #8   Spotlight this post!  
Unread 15-01-2008, 20:41
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: Help, I'm a world class computer programming genius yet I'm totally lost.

Quote:
Originally Posted by bcharbonneau View Post
...It's giving us an error involving a .cof file...
We'd be able to give you better help if you quoted the actual error. But my guess is that you're running into a known issue involving long path names. The part of the link process which creates the .cof file doesn't deal well with the long name that comes from deeply nested folders. The usual advice to fix the problem is to put your program directory somewhere close to the root, like C:\ROBOT.

Or you can just ignore the error, because you don't actually need the .cof file in order to load the program into your robot.
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
AHHH! I'm a lost newbie! I need help! lkdjm Programming 8 28-01-2006 08:41
i'm in the charleston area, and i'm looking to help out a team near here... dickymon General Forum 2 05-08-2002 16:40
OK...so I'm totally out of the loop... Markfuscius 3D Animation and Competition 8 03-02-2002 02:39


All times are GMT -5. The time now is 02:12.

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