Howdy all!
The Unity version of the HUD is coming along nicely - I've finished the code to pull in all the data from the IMU to one of the information panels, and I've been tweaking the code here and there to make sure the readings are accurate. The only (noteworthy) issue I've run into has been Unity's update() function, which runs once per frame. The application is (currently) so lightweight that the framerate can exceed the read/parse process of the serial data stream. I've implemented a crude way of temporarily solving that problem (execute this process every x number of frames), but framerate will still vary widely in the editor. However, you can put a frame limiter on applications that have been built, so that'll probably be the way to go. 60 or 120 FPS ought to be a good number to base all of the functions off of.
Below is a screenshot of the application running with all the IMU variables in the right info panel, which can be animated/moved around at will (SO much easier than Processing). On the far right, the raw serial data is shown, while the data that gets barfed out for debugging is in the lower left-hand corner.
The new build will be available soon - it's actually already ready to go, but since I've modified the original Adafruit 10-DOF example code to streamline the ReadLine() operation, I'll need to put the Arduino code up with it, and potentially a copy of the 10-DOF library, so folks can compile the new code. Sooo....there isn't much point quite yet, as the only changes have been on the serial side of things.
Cheers,
~Lexikitty
No comments:
Post a Comment