Jump to content

Recommended Posts

Hey All,TICK18 internally is an unsigned 32-bit integer, which means it won't rollover for 2761.6 days (or roughly 7.5 YEARS). In older versions this may have been a 16-bit integer (and if you look at the var->var_type enum it actually still claims it still is a TYPE_UINT16, but its wrong :-> ), but its not anymore.The reason why its an 18hz timer does date back to the old DOS days, but is really related to the timer chip in the old IBM PCs (18hz was the fastest rate you could get from that chip) not DOS itself.

Share this post


Link to post
Share on other sites

>Hey All,>>TICK18 internally is an unsigned 32-bit integer, which means>it won't rollover for 2761.6 days (or roughly 7.5 YEARS). In>older versions this may have been a 16-bit integer (and if you>look at the var->var_type enum it actually still claims it>still is a TYPE_UINT16, but its wrong :-> ), but its not>anymore.>>The reason why its an 18hz timer does date back to the old DOS>days, but is really related to the timer chip in the old IBM>PCs (18hz was the fastest rate you could get from that chip)>not DOS itself.>>Well, thanks for clearing that up. It was a rollover issue in the past and since no one's ever changed the SDK info (or stated before that it was different), one would have to assume it would still be a rollover issue.As for the source, yes... I know it was a physical timer chip limitation at the time... but didn't think I needed to go that "deep" ;) I was just trying to explain how "old" it was. LOL


Ed Wilson

Mindstar Aviation
My Playland - I69

Share this post


Link to post
Share on other sites

Noted. The info will be in the next version of sd2gau. (D*mn!! That means I have to go back and change a shedload of code!!). I'll update the gauges.h file too.-Dai

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