I am fusioning data from Acc Gyro and Magn and i have the quaternions and they are looking good and accurate in OpenGL.
What i want is that the user can define max and min rotation for each axis else a vibration maybe will be happen.
Should i convert to Euler and have a degree to check if each of three values is in the bounds? I have already done that but Gimbal lock messes things up. But i want to be as user friendly as possible.
If i cant do that with Euler angles is there an other way to define a max and min quaternion maybe?
Example:
The user defines x:10 y:10 z:10 and if the calibrated values are:
if(x>= calX+x || x<=calX - x) {//and so on....
//vivbrate
}