Skip to content

Morse gstreamer#164

Open
TomasWilliston wants to merge 7 commits into
mainfrom
morse-gstreamer
Open

Morse gstreamer#164
TomasWilliston wants to merge 7 commits into
mainfrom
morse-gstreamer

Conversation

@TomasWilliston

Copy link
Copy Markdown
Contributor

Adds a gstreamer plugin (+ helper modules) for parsing morse code from a red blinking LED, as well as another plugin + python script for testing the detection without a camera.

@ConnorNeed ConnorNeed left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great work

Comment thread src/Cameras/video_streaming/gst-plugins/morseLED/gstmorse_led.cpp
Comment thread src/Cameras/video_streaming/gst-plugins/morseLED/gstmorse_led.cpp Outdated
Comment thread src/Cameras/video_streaming/gst-plugins/morseLED/gstmorse_led.cpp Outdated
Comment thread src/Cameras/video_streaming/gst-plugins/morseLED/gstmorse_led.cpp Outdated
Comment thread src/Cameras/video_streaming/gst-plugins/morseLED/gstmorse_led.cpp
Comment thread src/Cameras/video_streaming/gst-plugins/morseLED/gstmorse_led.cpp
Comment thread src/Cameras/video_streaming/gst-plugins/morseLED/morse_decoder.cpp Outdated
Comment thread src/Cameras/video_streaming/gst-plugins/morseLED/morse_decoder.cpp
Comment thread src/Cameras/video_streaming/gst-plugins/morseLED/morse_decoder.cpp Outdated
namespace {
constexpr gdouble kMinUnitSeconds = 0.015;
constexpr gdouble kMaxUnitSeconds = 1.2;
constexpr gdouble kMinTransitionUnits = 0.08;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

At 66.7ms dit length this corresponds to 5.336ms. Our fastest camera only gets 60fps of 16.67ms. We might have to ignore all debouncing and pray that with enough attempts we get a good enough picture.

@ConnorNeed ConnorNeed left a comment

Copy link
Copy Markdown
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 you need all these locks.

The streaming thread is single threaded so any object not changed in the set_params does not need protection. For params that don't need to be changed at runtime you can set them as GST_PARAM_MUTABLE_READY and then gstreamer won't let them change while the pipeline is ready

Comment on lines +704 to +705
roi_x = self->roi_x;
roi_y = self->roi_y;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Are these values expected to be different from line 694?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants