Hi cugamelover. Can you please take a look at follow on function I need.
You previously created code for me to correct for a misleveled pan tilt system which took 2 axis inclinometer data rotated through 360 and calculated phi and theta Tait Bryan angles.
The phi and theta calculation is in MislevelCal::RunMislevelCal(..)
With phi and theta, I then call MislevelCal::ConvertLeveltoEncoder(..) which takes the "Leveled" position I desire, and converts it into the misleveled reference frame of the pan tilt (what I can the "encoder" reference frame, the encoder is what the pan tile encoder actually reads in its misleveled state).
This works great, however, when the encoder is moving from say position A to position B, it is reporting back intermediate az/el values as it moves. Those values are in encoder reference space, and if I display them to the user, they will not have been corrected for the mislevel.
So, can you look into converting back the other way, from encoder values to leveled values, ie. the function would be MislevelCal::ConvertEncodertoLevel(..)
using the same phi and theta.
I have attached the code as it exists today, along with a console program MislevelConsole and sample data file.
Need as soon as possible of course.