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

Method atpanic

libraries/AP_Scripting/lua_scripts.cpp:133–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133int lua_scripts::atpanic(lua_State *L) {
134 set_and_print_new_error_message(MAV_SEVERITY_CRITICAL, "Panic: %s", get_error_object_message(L));
135 longjmp(panic_jmp, 1);
136 return 0;
137}
138
139// helper for print and log of runtime stats
140void lua_scripts::update_stats(const char *name, uint32_t run_time, int total_mem, int run_mem)

Callers

nothing calls this directly

Calls 1

get_error_object_messageFunction · 0.85

Tested by

no test coverage detected