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-Thread: 103376,f822ae7b0f7433c1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!news.tele.dk!news.tele.dk!small.news.tele.dk!fi.sn.net!newsfeed2.fi.sn.net!news.song.fi!not-for-mail Date: Wed, 17 Jan 2007 13:44:53 +0200 From: Niklas Holsti User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20060628 Debian/1.7.8-1sarge7.1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Translating an embedded C algorithm References: <1168871816.263502.212100@11g2000cwr.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <45ae0afb$0$22524$39db0f71@news.song.fi> Organization: TDC Song Internet Services NNTP-Posting-Host: laku61.adsl.netsonic.fi X-Trace: 1169033979 news.song.fi 22524 81.17.205.61:32889 X-Complaints-To: abuse@song.fi Xref: g2news2.google.com comp.lang.ada:8220 Date: 2007-01-17T13:44:53+02:00 List-Id: Vo, Anh (US SSA) wrote: > [snipped] > here is the updated version of it. Thanks to Christoph Grein for his correction. > > ------------------------------------------------------------------------ > --| MeasureTemperature > --| > [snipped] > InterpolationDistance := (Adc_Count - MINIMUM_ADC_COUNT) mod (SPACING - 1); To pick a nit: I think that should be "mod SPACING", not "SPACING - 1". -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .