01-17-2014 02:22 PM
It is a relatively simple matter to rotate an image n times and create an array of pictures or a pict ring for diplay. That is exactly what I did here:
But, there is an underlying problem that no amount of bilinear interpolation is going to solve: you have used a gradient to create a lighting effect in your image. Rotating this image will make it appear that the light source is rotating, not a good look. You really need to break the image down and rotate just the quadrotor and indicator while leaving the body of the gauge alone.
01-19-2014 09:27 PM
Hi, here's the actual VI. I replaced my yaw indicator with a normal numeric indicator because my actual yaw indicator is a pict ring with lots of pictures. And the file is too big to even be attached here. This is why I want to use a rotation code, to minimize the file size. How do I simple wire the rotation code to the received value? So I don't need the event structure at all?
How does a typical received string look like? Does the lower code alone communicate correctly with the instrument if you leave out the rotation code?
The string data displays "#YPR=69.46,1.17,-0.42". The lower code alone works correctly without the rotation code.
01-20-2014 03:26 AM - edited 01-20-2014 03:31 AM
@'Aliah wrote:
Hi, here's the actual VI. I replaced my yaw indicator with a normal numeric indicator because my actual yaw indicator is a pict ring with lots of pictures. And the file is too big to even be attached here.
How many pictures do you possibly need? I doubt you need infinite resolution. Also try to use paletted pictures instead of 24 bit pictures.
Some more comments to your code:
Attached are a few simple changes. It is nowhere complete.
06-20-2017 12:43 AM
Try this!.You can use this code to rotate an image!.
Even,you can use the IMAQ rotate function in the Vision and Motion palette instead.
If you wanna use a custom code,try this.
Thanks!