Go to Post Inspiration and recognition does not equal "advanced shop class". What's better for your team is not better for all teams. Remember that. - DonRotolo [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 17-06-2005, 10:40
ImmortalAres ImmortalAres is offline
Registered User
no team
 
Join Date: May 2005
Location: Clarkson University
Posts: 33
ImmortalAres is an unknown quantity at this point
Quick Simple Question

Is the code that is on the master microprocessor (not the user one) in the RC included somewhere in the FRC default code (ie is it possible for me to look at and then change appropriately for my needs?)
  #2   Spotlight this post!  
Unread 17-06-2005, 10:47
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Quick Simple Question

Quote:
Originally Posted by ImmortalAres
Is the code that is on the master microprocessor (not the user one) in the RC included somewhere in the FRC default code (ie is it possible for me to look at and then change appropriately for my needs?)
Nope. This would be a safety hazard as then teams could modify the behavior of the master processor which is what controls things like shutting down the robot when it's disabled, etc.
  #3   Spotlight this post!  
Unread 17-06-2005, 11:00
ImmortalAres ImmortalAres is offline
Registered User
no team
 
Join Date: May 2005
Location: Clarkson University
Posts: 33
ImmortalAres is an unknown quantity at this point
Re: Quick Simple Question

does anyone here then have a general idea of what it does and then i could jsut make it up myself. i'm not using it to change the RC i'm using it to migrate code i wrote for the RC to another PIC device.
  #4   Spotlight this post!  
Unread 17-06-2005, 11:17
fowlerm's Avatar
fowlerm fowlerm is offline
Bringing .NET to Robots
AKA: Matthew Fowler
FRC #0312 (Heatwave); FRC #1369 (Minotaur)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2001
Location: St. Petersburg, FL, USA
Posts: 78
fowlerm has a spectacular aura aboutfowlerm has a spectacular aura aboutfowlerm has a spectacular aura about
Re: Quick Simple Question

What are you trying to do that only the master processor does? All it really does is handle the data that is coming over the radio and pass it on to the user in formatted packets and then take packets from the user and send them over the radio. It also enables/disables the user and sets the autonomous mode, but that's only for competition.
  #5   Spotlight this post!  
Unread 17-06-2005, 11:28
ImmortalAres ImmortalAres is offline
Registered User
no team
 
Join Date: May 2005
Location: Clarkson University
Posts: 33
ImmortalAres is an unknown quantity at this point
Re: Quick Simple Question

thank you, that's all i needed to know. that it really does nothing other than control some things i'm not interested in and all the code i really need to get a PIC working is in the FRC stuff (i just have to change it all)

Thanks
  #6   Spotlight this post!  
Unread 17-06-2005, 11:34
ImmortalAres ImmortalAres is offline
Registered User
no team
 
Join Date: May 2005
Location: Clarkson University
Posts: 33
ImmortalAres is an unknown quantity at this point
Re: Quick Simple Question

however there are a lot of function prototypes in the start up file (ifi_startup) that i can't find code for ie the ifi_intialization that apparently "Configures registers and initializes the SPI RX/TX buffers." which seems important to me
  #7   Spotlight this post!  
Unread 17-06-2005, 11:52
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: Quick Simple Question

Quote:
Originally Posted by ImmortalAres
however there are a lot of function prototypes in the start up file (ifi_startup) that i can't find code for ie the ifi_intialization that apparently "Configures registers and initializes the SPI RX/TX buffers." which seems important to me
It's probably just a call to some master RC stuff. (as you assumed) According to what you said, it sets up the registers on the processor, so if you have any low level direct register stuff, you'll have to fix that, and it initializes the input and output buffers.

What fowlern said is basically correct. The master processor just sits there and receives all outside data. (from sensors, controls, etc) It then handles if appropriate (for instance, the disable signal) or passes it along to the user processor. For most output, the user proc sends it's desired info to the master and the master then sets things correctly.

The way it's setup is great for you because all you have to do is create some wrapper code which takes care of simulating the data transfer between your code and the nonexistent master.
__________________

  #8   Spotlight this post!  
Unread 17-06-2005, 12:58
fowlerm's Avatar
fowlerm fowlerm is offline
Bringing .NET to Robots
AKA: Matthew Fowler
FRC #0312 (Heatwave); FRC #1369 (Minotaur)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2001
Location: St. Petersburg, FL, USA
Posts: 78
fowlerm has a spectacular aura aboutfowlerm has a spectacular aura aboutfowlerm has a spectacular aura about
Re: Quick Simple Question

Quote:
Originally Posted by ImmortalAres
however there are a lot of function prototypes in the start up file (ifi_startup) that i can't find code for ie the ifi_intialization that apparently "Configures registers and initializes the SPI RX/TX buffers." which seems important to me
The definitions for those functions are in the IFI library file. Unless you're going to talk to another device using the SPI bus (the bus IFI uses to link the master with the user) there is no reason to call that function. As far configuring the registers, I'm not sure what all IFI does there, but you should be able to configure the registers you need with your own code.
  #9   Spotlight this post!  
Unread 17-06-2005, 13:08
ImmortalAres ImmortalAres is offline
Registered User
no team
 
Join Date: May 2005
Location: Clarkson University
Posts: 33
ImmortalAres is an unknown quantity at this point
Re: Quick Simple Question

yea, they could have made it a little easier for me to see what was going on but i figured it out. i'm writing my own now

thanks guys
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
a quick function question Kashi Chan Programming 3 06-03-2005 20:44
quick c question shobuda999 Programming 6 22-02-2005 13:51
Quick <hr> question Jack Website Design/Showcase 1 31-01-2003 22:19
Quick Newbie Question Gobiner Programming 5 16-12-2002 12:49
A quick question Joelster Technical Discussion 6 10-02-2002 09:09


All times are GMT -5. The time now is 10:56.

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