ardupilot/libraries/AP_HAL_SITL/AP_HAL_SITL_Main.h

16 lines
365 B
C
Raw Normal View History

#ifndef __AP_HAL_SITL_MAIN_H__
#define __AP_HAL_SITL_MAIN_H__
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
#define AP_HAL_MAIN() extern "C" {\
2015-10-19 11:26:18 -03:00
int main (int argc, char * const argv[]) { \
AP_HAL::HAL::FunCallbacks callbacks(setup, loop); \
hal.run(argc, argv, &callbacks); \
return 0; \
}\
}
#endif
#endif // __AP_HAL_SITL_MAIN_H__