-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.lua
More file actions
30 lines (25 loc) · 667 Bytes
/
main.lua
File metadata and controls
30 lines (25 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--------------------------------------------
-- main: Main tick function for racecapture device.
--
-- Uncomment calls in onTick() to run scripts.
-- 'info', 'verbose', or nil
LOG_LEVEL = 'info'
TICKS = 10
function info(str)
if (LOG_LEVEL == 'info') or (LOG_LEVEL == 'verbose') then print('\n*** '..str) end
end
function verbose(str)
if LOG_LEVEL == 'verbose' then print('\n+++ '..str) end
end
setTickRate(TICKS)
function onTick()
tick_frequency()
tick_vminmax_simple()
tick_besttimetoday()
tick_gpsdopenum()
-- tick_iatdelta()
-- tick_brakebias()
-- tick_mock()
-- once every 10s.
if should_run(0.1) then collectgarbage('collect') end
end