Go to Post Comments and Documentation: Use them! You would never believe how fast you will forget how something works, especially when things are flying at you so fast. Other/future programmers will understand what you did and why you did it. - BigJ [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 Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 08-03-2005, 05:18 PM
jdong jdong is offline
Linux Nerd
AKA: John D
#0245 (Adam-Bots)
Team Role: Programmer
 
Join Date: Apr 2004
Location: Rochester, MI
Posts: 98
jdong will become famous soon enoughjdong will become famous soon enough
Re: If you could write the default code...

I did some RTOS research with the PIC18 chipset last year, and concluded that it wasn't feasible; by the time the RTOS is on the chip, there's little/no resources for the actual code.

I've actually gone to the extreme and am experimenting with a Linux coprocessor setup via serial, using Kevin Watson's wonderful serial_ports code! It's working pretty successfully, and (if done correctly) is in full compliance with the 2004 and 2005 FIRST rules, so presumably the new rules, too, as long as we don't get a cease-and-desist for our work!

http://adambots.gotdns.com/cgi-bin/v...rceCoProcessor
__________________
John Dong
Co-Captain, Webmaster / Programmer
Team 245 -- Rochester Adams Robotics
  #17   Spotlight this post!  
Unread 08-04-2005, 12:52 AM
Hutch Hutch is offline
NOTAG
FRC #0461 (Westside Boiler Invasion)
Team Role: Programmer
 
Join Date: Jul 2005
Location: Indiana
Posts: 69
Hutch will become famous soon enoughHutch will become famous soon enough
Smile Re: If you could write the default code...

The question I guess I have to ask is (and this is more directed at the content of the site than the actual idea), is that necessary? I mean it's cool and I like the idea, don't get me wrong. And I was the one defending shifting in drive trains, even though it's not necessary... But still, I think you kind of reach a point where you have to ask yourself, just how much processing power do you need? I mean, for most people, all their code does is map joysticks to motors (well ok, a little more than that but still). And if it really bothers you that much to write something in C, well maybe programming isn't for you .

I guess I just think it's kind of nice to program in a somewhat limitted environment because it makes it more challenging and fun.

EDIT: And this isn't just directed at you... I see a lot of people working on coprocessor projects and kind of wonder about it - no one seems to really use the power once they have it.

Last edited by Hutch : 08-04-2005 at 12:56 AM.
  #18   Spotlight this post!  
Unread 08-04-2005, 01:31 AM
Kyle T Kyle T is offline
waiting for next season...
FRC #0810 (Mechanical Bulls)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Smithtown
Posts: 20
Kyle T is an unknown quantity at this point
Re: If you could write the default code...

Quote:
Originally Posted by Joe Ross
It's a bad idea to modify ifi_aliases.h. If IFI ever releases a new version of the default code with a new ifi_aliases.h, you'll have to redo all your changes which leads to errors and extra work. It's also almost impossible to pass your code on to the next set of programmers.

Instead, you should create a new file, perhaps "kyles_aliases.h" and add everything you want there.
If I want to add to the end of it, it's just a quick copy and paste; it's almost as simple as typing in include 'user_aliases.h';.

Speaking of which, I think any upgrades to the code should come in some kind of format (interpreted by the IDE, of course) which checks to see if the old blocks they replace are still intact and then and only then replacing them with the new ones. Having to re-insert all kinds of new sections of code in the event of an update is a real pain, and updates are sometimes neccessary.
__________________

Last edited by Kyle T : 08-04-2005 at 01:33 AM.
  #19   Spotlight this post!  
Unread 08-04-2005, 09:41 AM
Hutch Hutch is offline
NOTAG
FRC #0461 (Westside Boiler Invasion)
Team Role: Programmer
 
Join Date: Jul 2005
Location: Indiana
Posts: 69
Hutch will become famous soon enoughHutch will become famous soon enough
Re: If you could write the default code...

To solve the problem of that, I ended up with a file, user_nav.c, and it's header - I would include the header and call four functions in it (autoInit, autoDrive, userInit, userDrive or soemthing to that effect) and the calls to those four things were the only things I would ever have to change if all of the IFI code completely changed.
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
Out of the Box Camera Code russell Programming 9 10-21-2009 04:28 AM
Best Way To Insert Autonomous Code Into Default then load help.? :-)? gemccnp Programming 2 02-05-2005 05:58 PM
default code vs. 2.4 stephenthe1 Programming 2 02-05-2005 05:02 PM
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 01-31-2005 09:28 PM
heres the code. y this not working omega Programming 16 03-31-2004 02:18 PM


All times are GMT -5. The time now is 03: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