comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: next_period = start + n*period; versus next_period = next_period+period;
Date: Wed, 27 Oct 2004 16:41:09 +0200
Date: 2004-10-27T16:41:09+02:00	[thread overview]
Message-ID: <gtu4h5vyo9au$.1dj6tjv6j2obd.dlg@40tude.net> (raw)
In-Reply-To: WENfd.2$oW3.0@dfw-service2.ext.ray.com

On Wed, 27 Oct 2004 08:46:29 -0500, Mark H Johnson wrote:

> Dmitry A. Kazakov wrote:
> 
>> [snip]
>> 
>> Right. However there could be other issues to consider:
>> [snip]
>> 
>> 2. What happens when the task misses a deadline? Usually it should skip one
>> "tick" and go to the next one.
>>
> Maybe yes, maybe no. I have built several system where if you run long 
> in one frame, you try to catch up the next one. For example, I may have 
> an 80 Hz task running. It is connected to a 1553 bus where at 1 Hz, I 
> get more messages than any other 80 Hz frame. If I overrun that one 
> frame (out of 80), I don't mind running the next frame a little late.
> 
> It all depends on the application being designed and the safety (or 
> accuracy) considerations of that design.

Yes, if you change the requirements. (:-)) However, surely, it is
questionable whether jitter and even more so, a small absolute time lag is
a real issue in say 80-100% cases. In my ignorance I always had an
impression that guys developing controllers are just too lazy. They are
pushing the problems with their bad models to us, pure programmers! (:-))

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2004-10-27 14:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-26 16:20 next_period = start + n*period; versus next_period = next_period+period; Paul Colin Gloster
2004-10-26 17:16 ` Florian Weimer
2004-10-27  7:35   ` Dmitry A. Kazakov
2004-10-27 13:46     ` Mark H Johnson
2004-10-27 14:41       ` Dmitry A. Kazakov [this message]
2004-10-28 13:37         ` Mark H Johnson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox