Skip to content

Conversation

@PeterJohnson
Copy link
Contributor

The period and path prefix and suffix can be set, and the operation enabled
and disabled at will (this is particularly useful in combination with PR #572).

The period and path prefix and suffix can be set, and the operation enabled
and disabled at will (this is particularly useful in combination with PR #572).
@codecov-io
Copy link

codecov-io commented Apr 23, 2016

Current coverage is 53.49%

Merging #573 into master will decrease coverage by -0.17%

  1. File .../PipelineRunner.java (not in diff) was modified. more
    • Misses 0
    • Partials +1
    • Hits -1
  2. File ...StoppableButton.java (not in diff) was modified. more
    • Misses 0
    • Partials +1
    • Hits -1
@@           master    #573   diff @@
=====================================
  Files         158     159     +1   
  Lines        4699    4776    +77   
  Methods         0       0          
  Branches      500     507     +7   
=====================================
+ Hits         2522    2555    +33   
- Misses       2037    2077    +40   
- Partials      140     144     +4   

Powered by Codecov. Last updated by 18a7a4a...a605830

suffix = this.suffix;
}
} catch (InterruptedException e) {
break;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to reset the interrupt flag here.
Thread.interrupt()

@JLLeitschuh
Copy link
Member

Thanks for this. This is not something I thought people would want. I like the idea though.

private final BytePointer imagePointer = new BytePointer();
private Optional<Thread> saveThread = Optional.empty();
private volatile boolean connected = false;
private long startTime = System.nanoTime();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guava has the stopwatch that may be more apropreate here. Up to you though.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this even needs to be timed; it'll only run when the pipeline gets fired anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it's nice to not necessarily save every frame all the time. For example, my team saves images twice a second during a match but switches to saving every image when actually auto-aiming.

@PeterJohnson
Copy link
Contributor Author

This is very useful for testing and debugging at competition where you don't have realtime access because you can load up the saved images to play them back through the pipeline and adjust thresholds etc. I'll fix up based on the comments so far.

@PeterJohnson
Copy link
Contributor Author

I'm debating adding a directory chooser for the output directory instead of or in addition to the prefix. However, I'm not sure if adding those sorts of controls is frowned upon in operations.

@JLLeitschuh
Copy link
Member

JLLeitschuh commented May 21, 2016

No, a directory chooser would be a good control to add.
Unless other people have thoughts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants