2013-01-02 22:17:32 -04:00
|
|
|
/*
|
|
|
|
simple hello world sketch
|
|
|
|
Andrew Tridgell September 2011
|
|
|
|
*/
|
2012-10-27 02:18:51 -03:00
|
|
|
|
2015-08-11 03:28:43 -03:00
|
|
|
#include <AP_HAL/AP_HAL.h>
|
2012-10-27 02:18:51 -03:00
|
|
|
|
2017-04-13 08:31:40 -03:00
|
|
|
void setup();
|
|
|
|
void loop();
|
|
|
|
|
2015-10-16 17:22:11 -03:00
|
|
|
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
2012-10-27 02:18:51 -03:00
|
|
|
|
2013-01-02 22:17:32 -04:00
|
|
|
void setup() {
|
2017-04-13 08:31:40 -03:00
|
|
|
hal.console->printf("hello world\n");
|
2012-10-27 02:18:51 -03:00
|
|
|
}
|
|
|
|
|
2013-01-02 22:17:32 -04:00
|
|
|
void loop()
|
|
|
|
{
|
2017-04-13 08:31:40 -03:00
|
|
|
hal.scheduler->delay(1000);
|
|
|
|
hal.console->printf("*\n");
|
2012-10-27 02:18:51 -03:00
|
|
|
}
|
|
|
|
|
2013-01-02 22:17:32 -04:00
|
|
|
AP_HAL_MAIN();
|