Created attachment 36416 [details] [review]
Time delta for logs and replay script
Patch to support optional time delta for logs (vital to produce a more accurate
replay of a log) and added python script for replaying the logs via a named
Testing has been done with a generic USB tty based GPS with the logs replayed.
Thanks Tim. I'll review this shortly.
+ pipe = open(options.pipe, 'w')
That creates a normal file. Use os.mkfifo() to create a named pipe on disk and then stream the data through that. This will avoid what is currently a delayed copy operation.
(In reply to comment #2)
> + pipe = open(options.pipe, 'w')
> That creates a normal file. Use os.mkfifo() to create a named pipe on disk and
> then stream the data through that. This will avoid what is currently a delayed
> copy operation.
The pipe I was using to test was originally created with os.mkfifo().
I will extend the script to do check for if a file exists, if so that it is a fifo and if not create the fifo with the os.mkfifo method.
Created attachment 36550 [details] [review]
Time delta for logs and replay script 02
Have attached an improved patch that checks specified fifo is valid.
Note this patch also extends the simple-gps-python.py to allow the baud rate to be set. Since my testing is with a serial over USB based GPS setting the baud rate is necessary.