AP_HAL_PX4: added main program as include
This commit is contained in:
parent
28353cd683
commit
2669c33476
10
libraries/AP_HAL_PX4/AP_HAL_PX4_main.h
Normal file
10
libraries/AP_HAL_PX4/AP_HAL_PX4_main.h
Normal file
@ -0,0 +1,10 @@
|
||||
// this is included at the end of every sketch
|
||||
extern "C" __EXPORT int SKETCH_MAIN(int argc, char *argv[]);
|
||||
int SKETCH_MAIN(int argc, char *argv[])
|
||||
{
|
||||
printf("%s starting\n", SKETCHNAME);
|
||||
hal.init(NULL);
|
||||
setup();
|
||||
for(;;) loop();
|
||||
return OK;
|
||||
}
|
Loading…
Reference in New Issue
Block a user