|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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
|
|||||
|
|||||
|
Re: put and get
Quote:
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
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
||||
|
||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |