ardupilot/libraries/AP_HAL_PX4/examples/simple/simple.pde

26 lines
360 B
Plaintext
Raw Normal View History

2012-10-27 02:18:51 -03:00
#include <AP_Common.h>
#include <AP_Progmem.h>
#include <AP_HAL.h>
#include <AP_HAL_PX4.h>
const AP_HAL::HAL& hal = AP_HAL_PX4_Instance;
void loop (void) {
hal.console->println(".");
}
void setup (void) {
hal.console->println("Hello World");
}
extern "C" {
int main (void) {
hal.init(NULL);
setup();
for(;;) loop();
return 0;
}
}