From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f8311a3a7edd715 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-13 09:48:02 PST Path: supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!colt.net!dispose.news.demon.net!demon!news.demon.co.uk!demon!diphi.demon.co.uk!jpt From: JP Thornley Newsgroups: comp.lang.ada Subject: Re: Using "delay until" in real-time Date: Wed, 13 Dec 2000 17:32:30 +0000 Message-ID: References: <915jl7$jt5$1@nnrp1.deja.com> <9168vi$7mp$1@nnrp1.deja.com> NNTP-Posting-Host: diphi.demon.co.uk X-NNTP-Posting-Host: diphi.demon.co.uk:158.152.212.133 X-Trace: news.demon.co.uk 976729634 nnrp-04:12115 NO-IDENT diphi.demon.co.uk:158.152.212.133 X-Complaints-To: abuse@demon.net MIME-Version: 1.0 X-Newsreader: Turnpike Integrated Version 4.02 S Xref: supernews.google.com comp.lang.ada:3079 Date: 2000-12-13T17:32:30+00:00 List-Id: In article <9168vi$7mp$1@nnrp1.deja.com>, Ted Dennison writes >I think this is essentially the same as my iteration-counting scheme, >except that the "Major_Iteration_Rate" is set to 0.05 instead of 1.0, >and the number of minor cycles is hard-coded. Yes, I guess it is. > >I did simplify things a bit for my question. We are actually using 4 >minor cycles in our 60Hz major cycle. Perhaps you can get a solution by avoiding the use of Duration. The delay expression for a relative delay is only restricted to being "any non-limited type" (9.6(5)), so why not declare your own: type My_Duration is delta (1/Iteration_Hz) range ; for My_Duration'Small use 1/Iteration_Hz; (Although I would want to be very sure that my compiler was reliable when dealing with a Small that was not a power of 2). Cheers, Phil -- JP Thornley