mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 00:48:30 -04:00
152edf7189
Using a global .dir-locals.el file is a better alternative than reincluding the same emacs header in every file of the project.
21 lines
286 B
C++
21 lines
286 B
C++
/*
|
|
simple hello world sketch
|
|
Andrew Tridgell September 2011
|
|
*/
|
|
|
|
#include <AP_HAL/AP_HAL.h>
|
|
|
|
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
|
|
|
void setup() {
|
|
hal.console->println("hello world");
|
|
}
|
|
|
|
void loop()
|
|
{
|
|
hal.scheduler->delay(1000);
|
|
hal.console->println("*");
|
|
}
|
|
|
|
AP_HAL_MAIN();
|