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

Method reset_loop_overtime

libraries/AP_Scripting/lua_scripts.cpp:316–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316void lua_scripts::reset_loop_overtime(lua_State *L) {
317 overtime = false;
318 // reset the hook to clear the counter
319 const int32_t vm_steps = MAX(_vm_steps, 1000);
320 lua_sethook(L, hook, LUA_MASKCOUNT, vm_steps);
321}
322
323void lua_scripts::run_next_script(lua_State *L) {
324 if (scripts == nullptr) {

Callers

nothing calls this directly

Calls 2

MAXFunction · 0.85
lua_sethookFunction · 0.85

Tested by

no test coverage detected