ardupilot/libraries/Desktop/support/main.cpp
Andrew Tridgell 4109374959 first rough build for desktop CPUs
this allows ArduPlane to build and startup on 'desktop' systems (eg. a
Linux box). Very rough for now, and only for HIL so far
2011-10-09 22:16:13 +11:00

17 lines
234 B
C++

#include <stdio.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();
return 0;
}