Making PID compute period a #define

Initializing pot box connected flag in the initialize function. Don't
read from the pot box when it isn't connected.