Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Ardupilot
GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Tools/Hello/Hello.cpp
9326 views
1
/*
2
simple hello world sketch
3
Andrew Tridgell September 2011
4
*/
5
6
#include <AP_HAL/AP_HAL.h>
7
8
void setup();
9
void loop();
10
11
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
12
13
void setup()
14
{
15
hal.console->printf("hello world\n");
16
}
17
18
void loop()
19
{
20
hal.scheduler->delay(1000);
21
hal.console->printf("*\n");
22
}
23
24
AP_HAL_MAIN();
25
26