ardupilot/libraries/Desktop/support/main.cpp

21 lines
275 B
C++
Raw Normal View History

#include <stdio.h>
2011-10-09 06:41:03 -03:00
#include <unistd.h>
#include <time.h>
#include <sys/time.h>
void setup(void);
void loop(void);
struct timeval sketch_start_time;
int main(void)
{
gettimeofday(&sketch_start_time, NULL);
setup();
2011-10-09 06:41:03 -03:00
while (true) {
loop();
usleep(10);
}
return 0;
}