June 7, 200520 yr Commercial Member Hello guys, I need your help again. I am trying to achieve a VSI needle animation in my Primus 1000 CDS PFD. The problem is that the VSI scale is not round like a conventional VSI, but it is straight.(see attached picture) I have tried the GDI+ way of rotating a needle with its centerpoint shifted, but it would mean an unnecessary rotation on the x-axis, when this animation is more of a y-axis translation. I am stumped on how to get this needle to animate properly, as I am not so frantic on the y-axis animation. Thank you very much for your help in advance.Sincerely,Tiberiu Brasovhttp://forums.avsim.net/user_files/118839.jpg
June 7, 200520 yr Hi,Tested this one:(A:Vertical speed,ft/min) -6000 max 6000 min(A:Vertical speed,ft/min) abs -6000 max 6000 minHope it helps,Jan"Beatus Ille Procul Negotiis" Jan "Beatus ille qui procul negotiis..."
June 7, 200520 yr Moderator As Tiberiu asked about an C/GDI+ method, this is not a viable solution to his question. ;)That said though, your post has gone into my "tips and tricks archive" for any possible XML use in the future. Thanks! Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
June 7, 200520 yr Regarding GDI+, there is no rotation needed at all, in case I see the problem correctly. Actually just the left point of the needle would have to be moved up/downwards.But probably you could post a picture which shows the needle in a non-zero position.
June 7, 200520 yr Author Commercial Member Jan, Thank you very much for posting that XML example, unfortunately I am not that familiar with XML, but from what I see, it uses a nonlinearity table with values set for 6000 and -6000. Unfortunately I use C++ and GDI+, so no luck here. I tried implementing your example in the C++ code, but it does not work this way for this type of a VSI. Again, thank you for your help.Yours Truly,Tiberiu Brasov
June 8, 200520 yr Author Commercial Member Hello Etienne, Long time no talk. Thank you for your reply. Here is a picture of the VSI shifted upwards. The needle will move higher upward(about 50 pixels) until 6000FT. Thank you for your help.http://forums.avsim.net/user_files/118917.jpgYours Truly,Tiberiu Brasov
Create an account or sign in to comment