updatePid not working but just needs better reading- to be implemented by param.c