Hey all. I'm working on adding support for a hardware 3D tracking device, which can retrieve roll, pitch, yaw from one or multiple devices. (It also may have other functionality to be determined/implemented in the future).
In any event, I currently have an api on the object something like:
Count() // returns the number of available devices
Open() // open the next or first device
Open( int which_device ) // open a specific device
float GetRoll( int which ); // roll, normalized [-1, 1]
float GetRoll(); // from the first in the list
float GetPitch( .. ) // same two as Roll above
float GetYaw( .. ) // same again
Close( .. ) // close the device
Is there an exisiting api that another hardware device has that I should be using, or is this good?
(There was no specific need for our device to have Processing support, but I figured it would be cool to have... I already have it interacting with some shapes on the screen, which is really nifty... and this opens up a bunch of possibilities.
)