ardupilot/libraries/AP_HAL_PX4/examples/simple/simple.cpp

23 lines
365 B
C++
Raw Normal View History

2013-05-29 20:54:53 -03:00
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
2013-01-02 22:17:32 -04:00
/*
simple hello world sketch
Andrew Tridgell September 2011
*/
2012-10-27 02:18:51 -03:00
#include <AP_HAL/AP_HAL.h>
2012-10-27 02:18:51 -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() {
hal.console->println("hello world");
2012-10-27 02:18:51 -03:00
}
2013-01-02 22:17:32 -04:00
void loop()
{
hal.scheduler->delay(1000);
hal.console->println("*");
2012-10-27 02:18:51 -03:00
}
2013-01-02 22:17:32 -04:00
AP_HAL_MAIN();