Ardupilot2/libraries/AP_HAL_FLYMAPLE/examples/empty_example/empty_example.cpp

23 lines
452 B
C++
Raw Normal View History

#include <AP_HAL/AP_HAL.h>
#include <AP_Common/AP_Common.h>
#include <AP_Param/AP_Param.h>
#include <AP_Math/AP_Math.h>
#include <AP_HAL_FLYMAPLE/AP_HAL_FLYMAPLE.h>
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
void setup() {
hal.scheduler->delay(5000);
hal.console->println("Empty setup");
}
void loop()
{
hal.console->println("loop");
hal.console->printf("hello %d\n", 1234);
hal.scheduler->delay(1000);
}
AP_HAL_MAIN();