Jump to content
Sign in to follow this  
Guest iagman

Shift question

Recommended Posts

Guest iagman

I need to shift a needle across a bitmap measuring 50 pixels in width. The needle will normally rest on the 25th pixel. VarableA stores a calculated value in degrees. Using this degree value, the needle will shift 25 pixels left and right. This is the code I

Share this post


Link to post
Share on other sites
Guest Vorlin

It sounds as if the sensitivity is set by the increments of the original variable that's in degrees. Did you try to get the variable changed from degrees to a number or enum in order to possibly have the variable accurate to a tenth of a degree rather than a full degree?Just a thought.Scott / Vorlin

Share this post


Link to post
Share on other sites

Hi,Or you can do something with Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites
Guest iagman

Thanks for the replies. The delay idea may be a workaround if I can't split the degree value into smaller pieces or get smaller values using some unit other than degrees. I haven't tried that yet.The next code was pulled from the gps to supply a value for one of my variables. This L-variable is always in whole degrees. Exactly what function is the "d360" playing? (@c:GeoCalcBearing, degrees) (A:GPS MAGVAR, degrees) - d360 (>L:VariableB, degrees)Glenn

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