Add support for grabbing frames from the PSEye camera by using the PS3EYEDriver and libusb on OS X. This needs to be enabled separately in CMake. By default, it tries to find libusb from the system (via pkg-config), but there's also support for building libusb-1.0.9 (in external/) statically and linking against it statically. Static linking is also what contrib/build-osx-snapshot uses now. This means that the iSight isn't supported for those snapshot builds, you would have to disable the configuration options in the script and rebuild without PSMOVE_USE_PS3EYE_DRIVER (you can also skip building libusb in this case). The frames read from the USB camera are encoded in YUV422 format, we currently convert this using a function from PS3EYEDriver, modified to output BGR data instead of RGBA. By using multithreading and better buffer management (or buffer management at all), the frame rate could definitely be improved, but this is not implemented yet. Tested with OS X 10.9.1, but older releases should also work.
…lows switching to BTDFU mode, not only STDFU mode as before.
…mode. It won't retrieve anything otherwise since the Move will not act as HID anymore in this mode.
…e scheme used by the PS3 to identify legit Move controllers.
Thanks to Alexander for researching the magic numbers.
Thanks to CJ Davies on the mailing list for reporting.
Should fix this error at compilation phase: ```implicit declaration of function 'camera_control_initialize' is invalid in C99```
Based on the documentation by Alexander, Sebastian and Raphaël: https://code.google.com/p/moveonpc/wiki/SharpShooter
Camera_control_initialize() was called on all systems when it is defined in camera_control_macosx.c only. This caused problems on Linux and Windows.
Fix temperature sensor reading
bits were being used in the original get_temperature function. Also added a method to return the temperature in Celsius. Note: this is the temperature of a magnetometer not the room temperature. Added swig bindings for the new get_temperature_in_celsius
Thanks to Patryk Ziemkowski for mentioning this fix on our mailing list: http://lists.ims.tuwien.ac.at/pipermail/psmove/2013-March/000362.html
Added function to be called at startup in order to remove previous exposure lock.