![]() |
Programing delays in MPLAB
Yeah. What is the command to set up a delay (like go forward for x seconds) ?
|
Re: Programing delays in MPLAB
There is no single function through MPLAB, but there are several ways to accomplish what you want. The simplest is to just use a count of the slow radio packet loops as an approximation of time.
Here's an example. Code:
#define HOW_LONG 38 //38 = 1 second, e.g., 76 = 2 secondsThere's a white paper on understanding timers here: http://www.ifirobotics.com/docs/time...004-jan-14.pdf |
| All times are GMT -5. The time now is 20:26. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi