|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
||||
|
||||
|
Re: Delay Function
i've thought about it before, and it turns out something like bear24rw's idea.
Code:
int counter=0;
void User_Autonomous_Code(void)
{
static unsigned int i;
const float delay = 100;
int counter, int limit=(delay*1000)*26.4;
for(counter=0, counter<limit, counter++)
{
}
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Delay Help! | waiakea2024 | Programming | 7 | 21-02-2007 12:41 |
| VEX Ultrasonic Sensor delay | P1h3r1e3d13 | Programming | 4 | 28-03-2006 13:45 |
| NERDS Delay... | Andy Grady | General Forum | 21 | 14-03-2006 21:52 |
| Delay in autonomous mode | SpeakerSilenced | Programming | 1 | 22-02-2005 10:58 |
| Delay | Gal Longin | Programming | 1 | 09-12-2004 10:37 |