Added test code to read analog hats on PS3. Added speed reading from encoders.