Go to Post FIRST is the most glorious test of the mind. Anyone can run a marathon or get a slam-dunk. It takes guts to admit you are a nerd that enjoys six weeks off non-stop stress, and actually thrives on it. - kws4000 [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 09-02-2004, 16:10
Robert Hafner's Avatar
Robert Hafner Robert Hafner is offline
FIRST Alumni
no team
 
Join Date: Mar 2003
Rookie Year: 2000
Location: Springfield. MA
Posts: 34
Robert Hafner is on a distinguished road
Send a message via AIM to Robert Hafner Send a message via MSN to Robert Hafner Send a message via Yahoo to Robert Hafner
put and get

the putdata function updates the pwms right?

<-- LEGO Guy amuses me. (notes that since LEGO isn't capitalized on the smilie bar LEGO Systems, Inc. would not be pleased. . . )<-- off topic.
  #2   Spotlight this post!  
Unread 09-02-2004, 16:59
gnormhurst's Avatar
gnormhurst gnormhurst is offline
Norm Hurst
AKA: gnorm
#0381 (The Tornadoes)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Trenton, NJ
Posts: 138
gnormhurst will become famous soon enoughgnormhurst will become famous soon enough
Re: put and get

Quote:
Originally Posted by Robert Hafner
the putdata function updates the pwms right?
Yes, that's what I understand. Except for pwm's 13, 14, 15 & 16, which are updated by Generate_Pwms:

Code:
void Process_Data_From_Master_uP(void)
{
  Getdata(&rxdata);   /* Get fresh data from the master microprocessor. */

  Default_Routine();  /* Optional.  See below. */

  /* Add your own code here. */

  printf("Port1 Y %3d, X %3d, Fire %d, Top %d\n",(int)p1_y,(int)p1_x,(int)p1_sw_trig,(int)p1_sw_top);  /* printf EXAMPLE */

  Generate_Pwms(pwm13,pwm14,pwm15,pwm16);

  Putdata(&txdata);              /* DO NOT CHANGE! */
}
  #3   Spotlight this post!  
Unread 10-02-2004, 01:57
Jay Lundy Jay Lundy is offline
Programmer/Driver 2001-2004
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Berkeley, CA
Posts: 320
Jay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to all
Re: put and get

Putdata also updates the data that is sent back over the radio to the OI dashboard port and LEDs. Basically it updates the data on the master to reflect the changes in the txdata variable by the user.
  #4   Spotlight this post!  
Unread 10-02-2004, 08:54
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: put and get

It only actually updates the PWMs every 26.2ms. You can call it more often, but it won't do anything.
__________________

  #5   Spotlight this post!  
Unread 10-02-2004, 10:58
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: put and get

basically, it updates what the master processor is "seeing" from the user processor. every 26.2ms, the master processor takes a snapshot of this and uses it to update the PWMs, et cetera.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
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
Get Ready to DUEL! MOEWidow Off-Season Events 40 15-10-2003 21:16
Interfacing a second Micro to the RC Matt Reiland Programming 3 08-06-2003 00:11
Large Multiplication.. randomperson Programming 7 31-12-2002 19:29
Hits, Misses, & Suggestions -- long message archiver 2000 17 23-06-2002 23:36
Best Wheel Grip? archiver 2001 20 23-06-2002 22:38


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