Robotpirate Forums

Projects => ArduiNIX => Topic started by: catdotgif on March 29, 2012, 11:17:09 PM



Title: How to correct for slow/fast clock
Post by: catdotgif on March 29, 2012, 11:17:09 PM
Hi All,
     Has anyone written some code to correct for a fast/slow clock?  In the IN-17 code, nonentity has:
Code:
// Get time in seconds.
  long time = (runTime) / 1000; //////////change this value to speed up or slow down the clock

So I guess I get that, if for example my clock was 7 minutes fast per six month period, and there are 259200 minutes in a six month period, then I should...?

I can work out a time correction code, but before I do, has anyone already done this?  Just hate to duplicate labor.

thx!


Title: Re: How to correct for slow/fast clock
Post by: nonentity on April 09, 2012, 08:24:51 AM
Hi All,
     Has anyone written some code to correct for a fast/slow clock?  In the IN-17 code, nonentity has:
Code:
// Get time in seconds.
  long time = (runTime) / 1000; //////////change this value to speed up or slow down the clock

So I guess I get that, if for example my clock was 7 minutes fast per six month period, and there are 259200 minutes in a six month period, then I should...?

I can work out a time correction code, but before I do, has anyone already done this?  Just hate to duplicate labor.

thx!

As far as I know, no one has made any corrected code like you describe...


Title: Re: How to correct for slow/fast clock
Post by: Chad on June 22, 2012, 09:20:54 PM
Did anyone find a good setting? Mine is fast at 1000 and to slow at 1001