Jump to content
Sign in to follow this  
Jim Robinson

Dial Rotates the Wrong Way???

Recommended Posts

[p class=dcmessage]I'm trying to make an autopilot panel, currently working on the HDG hold selector. I've got it basically working, although not finished yet. The problem I'm having is the stupid selector dial rotates the wrong way. I'm using the tag and it actually works normally in that causes the dial to rotate clockwise, but in this case it needs to rotate counter clockwise.There must be something I can add to the (A:Autopilot heading lock dir,radians) line to make it rotate in the opposite direction.I attached the gauge if someone wouldn't mind having a look at it. Also, you'll see a black line extending from one edge of the dial that rotates with it. It's driving me nuts, I've filled that bitmap with black a hundred times and I can't get rid of it. Any suggestions?To reference the gauge in your panel.cfg use "Dh89a_autopilot!Dh89a_autopilot". Thanks,Jim[/class]http://www.cat-tamer.com/downloads/Dh89a_autopilot.cab

Share this post


Link to post
Share on other sites

Well that was a real head scratcher :( Never mind, I figured it out.<Value>(A:Autopilot heading lock dir,radians) -</Value>Now about the black line...Thanks,Jim

Share this post


Link to post
Share on other sites

>Well that was a real head scratcher :( Never mind, I figured>it out.>>(A:Autopilot heading lock dir,radians)>->>Now about the black line...Jim, it never fails! More often than not, when I ask for help here, within an hour or less I manage to answer my own question... ;)Your "black line" is likely a border area that for whatever reason is not staying (0,0,0) but instead is morphing to some small value greater than (0,0,0).If you are converting your bitmap to 8 bit, prior to saving check the area where the line appears and verify that the color is still (0,0,0). If it has changed, paint the "line" out with triple-zero color, or use the eraser with triple-zero as the background color.


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

Thanks Bill. I don't know if it's what I'm supposed to be doing, but I saved the bitmap to 32 bit and finally got rid of the line. Was 24 bit before, haven't tried 8 bit yet, guess that'd probably be the way to go for frame rate concerns?I've had that black line problem a lot when making gauges, and I've always saved to 24 bit, but only because that seems to be what PhotoShop defaults to. Now I see for some reason imagetool won't open the 24 bit bitmaps. That's weird, I thought imagetool would open almost anything.Take 'er easy,Jim

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...