mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-13 20:28:37 -04:00
21 lines
275 B
C++
21 lines
275 B
C++
#include <stdio.h>
|
|
#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();
|
|
while (true) {
|
|
loop();
|
|
usleep(10);
|
|
}
|
|
return 0;
|
|
}
|