camera clock frequency correction

As described in design/time.md:

* get the realtime-monotonic once at the start of a run and use the
  monotonic clock afterward to avoid problems with local time steps

* on every recording, try to correct the latest local_time_delta at up
  to 500 ppm

Let's see how this works...
This commit is contained in:
Scott Lamb
2016-12-29 21:05:57 -08:00
parent a71f6e66d8
commit 938d8a752f
6 changed files with 177 additions and 54 deletions

View File

@@ -181,7 +181,7 @@ fn run(args: Args, conn: rusqlite::Connection, signal: &chan::Receiver<chan_sign
let env = streamer::Environment{
db: &db,
dir: &dir,
clock: &clock::REAL,
clocks: &clock::REAL,
opener: &*stream::FFMPEG,
shutdown: &shutdown,
};