mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-09 16:41:21 +08:00
AP_Scripting: Reduce the sleep time with no scripts
Lowering the sleep time when no scripts are pending, causes starting a REPL session to respond much faster (this cuts the latency from up to 10 seconds to 1 second before the session is ready to start). Also lowers the default scripting debug level to hide the statustext from users, as in the general case this is just a spammy message if it occurs, and we should be finding better reporting bits to get this to the user.
This commit is contained in:
1 parent
13f2320138
commit
d7a59bc449
2 files changed
+7
-7
No files matched your search
@@ -72,10 +72,10 @@ const AP_Param::GroupInfo AP_Scripting::var_info[] = {
|
||||
AP_GROUPINFO("HEAP_SIZE", 3, AP_Scripting, _script_heap_size, SCRIPTING_HEAP_SIZE),
|
||||
|
||||
// @Param: DEBUG_LVL
|
||||
// @DisplayName: Enable Scripting Debug
|
||||
// @Description: Enable scripting debug.
|
||||
// @DisplayName: Scripting Debug Level
|
||||
// @Description: The higher the number the more verbose builtin scripting debug will be.
|
||||
// @User: Advanced
|
||||
AP_GROUPINFO("DEBUG_LVL", 4, AP_Scripting, _debug_level, 1),
|
||||
AP_GROUPINFO("DEBUG_LVL", 4, AP_Scripting, _debug_level, 0),
|
||||
|
||||
AP_GROUPEND
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user