/* * Example of AC_Notify library . * DIYDrones.com */ #include #include // Notify library #include // Board LED library void setup(); void loop(); const AP_HAL::HAL& hal = AP_HAL::get_HAL(); // create board led object AP_BoardLED board_led; void setup() { hal.console->printf("AP_Notify library test\n"); // initialise the board leds board_led.init(); // turn on initialising notification AP_Notify::flags.initialising = true; AP_Notify::flags.gps_status = 1; AP_Notify::flags.armed = 1; AP_Notify::flags.pre_arm_check = 1; } void loop() { hal.scheduler->delay(1000); } AP_HAL_MAIN();