- Dynamically look up gyro descriptors somehow.
- Make sure vibration function does not open the descriptor every time. Have it keep it open and clean it up when the program exits instead.
- Clean up constants.
- Use Sleep or usleep no both
- Cleanup includes
- Move duplicate code into a central library file or something.