CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Tools/Hello/Hello.cpp
Views: 1798
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