Thread: put and get
View Single Post
  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! */
}