|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#3
|
||||
|
||||
|
Re: RC Refresh Rate
Code:
if (statusflag.NEW_SPI_DATA) /* 26.2ms loop area */
{ /* I'm slow! I only execute every 26.2ms because */
/* that's how fast the Master uP gives me data. */
Process_Data_From_Master_uP(); /* You edit this in user_routines.c */
if (autonomous_mode) /* DO NOT CHANGE! */
{
User_Autonomous_Code(); /* You edit this in user_routines_fast.c */
}
}
It doesn't vary much to matter, if you have code that makes it take longer than 26.2ms to run it, it will explode. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Gyro Rate | Gary Bonner | Programming | 12 | 22-03-2008 16:49 |
| Compression Rate | pyr0b0y | 3D Animation and Competition | 2 | 15-02-2008 21:43 |
| Help!! Refresh my memory!! | Mike Rush | General Forum | 1 | 14-01-2003 22:43 |
| refresh my memory | archiver | 2000 | 2 | 23-06-2002 22:40 |
| Does this forum refresh? | Erin | General Forum | 1 | 01-06-2001 12:19 |