MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / init

Function init

libraries/AP_HAL_Linux/system.cpp:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void init()
26{
27 struct timespec ts {};
28 clock_gettime(CLOCK_MONOTONIC, &ts);
29 state.start_time_ns = ts_to_nsec(ts);
30}
31
32void WEAK panic(const char *errormsg, ...)
33{

Callers 3

runMethod · 0.70
read_blockMethod · 0.70
write_blockMethod · 0.70

Calls 2

clock_gettimeFunction · 0.85
ts_to_nsecFunction · 0.70

Tested by

no test coverage detected