within the update_speeds function, I am seeing freq remain a static value (7.389056, which is equal to math.exp(2)) no matter what voltage is present at input 1.
I think this is due to some issue with line 21. math.exp() seems to expect one argument according to the Lua docs I am seeing (example) and replit.com. the second argument is being ignored in the current script.
maybe this should be using a different math function?
within the
update_speeds
function, I am seeingfreq
remain a static value (7.389056
, which is equal tomath.exp(2)
) no matter what voltage is present at input 1.I think this is due to some issue with line 21.
math.exp()
seems to expect one argument according to the Lua docs I am seeing (example) and replit.com. the second argument is being ignored in the current script.maybe this should be using a different
math
function?