Hi,
I'm not quite sure but I want to give you a hint what it could be.
For the fourth paramter of the constructor a double is expected, but you are passing in an int. It could be that the compiler accepts that, but does not convert the int properly to a double. To do so, you can change 1 to 1.0 or even better 1.0d, wheras the d tells the compiler that the value should be handeled as double. But it's just a suggestion. Let me hear if that is changing something!
The int didnt matter. I think the compiler converts the int to double anyway.
When I set the xin to -10 then it works correctly.
So there is a problem with the float array.
I have tried: xin = double(mylib.ypr[2]); with no luck.
Kai_Heinz:
Hi,
I'm not quite sure but I want to give you a hint what it could be.
For the fourth paramter of the constructor a double is expected, but you are passing in an int. It could be that the compiler accepts that, but does not convert the int properly to a double. To do so, you can change 1 to 1.0 or even better 1.0d, wheras the d tells the compiler that the value should be handeled as double. But it's just a suggestion. Let me hear if that is changing something!