Fix sign error on isStationary function.
Add encoder failure test cases.
Add setFault/checkFault; treat encoder and precharge errors as unrecoverable.