This repository was archived by the owner on Feb 16, 2018. It is now read-only.
forked from adetaylor/python-ardrone
-
Notifications
You must be signed in to change notification settings - Fork 4
Fixes need to work with ARDrone 2.0 including deal #1
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| *.pyc | ||
| *~ | ||
| .cache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| language: python | ||
| python: | ||
| - "2.7" | ||
| notifications: | ||
| - email: false | ||
| install: | ||
| - sudo apt-get update | ||
| - sudo apt-get install ffmpeg | ||
| - pip install -r requirements.txt | ||
| - pip install -r dev-requirements.txt | ||
| script: py.test -n 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| pytest==2.3.5 | ||
| pytest-xdist==1.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import paveparser | ||
| import mock | ||
| import h264decoder | ||
| import os | ||
|
|
||
|
|
||
| def test_h264_decoder(): | ||
| pngstream = mock.Mock() | ||
| decoder = h264decoder.H264ToPNG(pngstream) | ||
| example_video_stream = open(os.path.join(os.path.dirname(__file__), 'paveparser.output')) | ||
| while True: | ||
| data = example_video_stream.read(1000) | ||
| if len(data) == 0: | ||
| break | ||
| decoder.write(data) | ||
|
|
||
| assert pngstream.write.called |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import paveparser | ||
| import mock | ||
| import os | ||
|
|
||
|
|
||
| def test_misalignment(): | ||
| outfile = mock.Mock() | ||
| p = paveparser.PaVEParser(outfile) | ||
| example_video_stream = open(os.path.join(os.path.dirname(__file__), 'ardrone2_video_example.capture')) | ||
| while True: | ||
| data = example_video_stream.read(1000000) | ||
| if len(data) == 0: | ||
| break | ||
| p.write(data) | ||
|
|
||
| assert outfile.write.called | ||
| assert p.misaligned_frames < 3 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import paveparser | ||
| import mock | ||
| import pngsplitter | ||
| import os | ||
|
|
||
|
|
||
| def test_pngsplitter(): | ||
| listener = mock.Mock() | ||
| splitter = pngsplitter.PNGSplitter(listener) | ||
| example_png_stream = open(os.path.join(os.path.dirname(__file__), 'pngstream.example')) | ||
| while True: | ||
| data = example_png_stream.read(1000) | ||
| if len(data) == 0: | ||
| break | ||
| splitter.write(data) | ||
|
|
||
| assert listener.image_ready.call_count > 60 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| PIL==1.1.7 | ||
| mock==1.0.1 | ||
| numpy==1.7.1 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it could be clearer to specify x, the 'number of frames' you want to read, then it would be clear that test considers 3 out of x misaligned_frames acceptable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm not exactly sure how many frames are in there. i'm reading from a file. i just know that a couple of frames misaligned is normal.