mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 15:38:29 -04:00
4109374959
this allows ArduPlane to build and startup on 'desktop' systems (eg. a Linux box). Very rough for now, and only for HIL so far
17 lines
234 B
C++
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;
|
|
}
|