Jump to content
Sign in to follow this  
pve

How to rotate a bitmap or polygon.

Recommended Posts

Hi all (A:NAV1 DME,nmiles) 3.4 * (L:HSI RANGE, number) 80 / /(A:NAV1 RADIAL,Radians) (A:GPS GROUND MAGNETIC TRACK, Radians) - Puts a bitmap or poly over or near your waypoint or navaid in the EHSI but how can you rotate the image.


Paul EGLD

Share this post


Link to post
Share on other sites

Hi,May be it helps to add:.....Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

Hi Jan I have a shift and rotate to locate the bitmap position, Can I have another rotate to turn the bitmap in the same element.


Paul EGLD

Share this post


Link to post
Share on other sites

Hi Paul,You might use and to locate the bmp position, and then rotate the bitmap as wished, (ie over its axis).Tom

Share this post


Link to post
Share on other sites

Hello Tom Yes that could solve it, Can you give an example of the Shift x and Y Syntax. I have not seen this before and not making any progress. Paul


Paul EGLD

Share this post


Link to post
Share on other sites

Hi Paul,This comes from an unfinished code of my ND that is still in development, but could be a useful example.First I place the bmp ref coordinates (0,0) on the upper vertex of the aircraft symbol. Then use this: @ValidInt @XposInt@YposInt **** Now that the bmp is properly positioned, from here you can proceed to rotate it as wished *****and the macros: (L:WpAngle,radians) sin (@c:NearestIntersectionCurrentDistance,nmiles) * /-/ (L:WpAngle,radians) cos (@c:NearestIntersectionCurrentDistance,nmiles) * /-/ :0 (L:IntCL,enum) s0 (>@c:NearestIntersectionCurrentLine) l0 5 < if{ l0 ++ (>L:IntCL,enum) g0 } (@c:NearestIntersectionCurrentTrueBearing,radians) (A:GPS MAGVAR, radians) - (A:GPS Ground Magnetic Track, radians) - /-/ (>L:WpAngle,radians) 1Hope this makes sense to you :-)Tom

Share this post


Link to post
Share on other sites

Hello Tom Nice one, got what I needed works OK. Now added (L:SetHoldTrack, degrees) can change inbound track in FMC (L:TurnDirectionHold,number) 1 == (L:SetHoldTrack, degrees) dgrd (A:GPS Ground Magnetic Track, radians) - (L:Holdrad,radians) (A:GPS MAGVAR, radians) - (A:GPS Ground Magnetic Track, radians) - /-/ cos (L:Holddist, nmiles) * /-/ (L:HSI RANGE, number) 80 / /(L:Holdrad,radians) (A:GPS MAGVAR, radians) - (A:GPS Ground Magnetic Track, radians) - /-/ sin (L:Holddist, nmiles) * /-/ (L:HSI RANGE, number) 80 / / Got work out how to draw a hold pattern with polyline now. Thanks Paul


Paul EGLD

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...