I think you want to do:
var p=new PID(...);
(Also, I'm pretty sure the code won't work without a bit of work to port to the Espruino) .
@DrAzzy started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I think you want to do:
var p=new PID(...);
(Also, I'm pretty sure the code won't work without a bit of work to port to the Espruino) .