diff --git a/plugins/channeltx/modatv/atvmod.cpp b/plugins/channeltx/modatv/atvmod.cpp
index 3bcfa9984..7e76b2334 100644
--- a/plugins/channeltx/modatv/atvmod.cpp
+++ b/plugins/channeltx/modatv/atvmod.cpp
@@ -38,6 +38,7 @@ const float ATVMod::m_blackLevel = 0.3f;
const float ATVMod::m_spanLevel = 0.7f;
const int ATVMod::m_levelNbSamples = 10000; // every 10ms
const int ATVMod::m_nbBars = 6;
+const int ATVMod::m_cameraFPSTestNbFrames = 100;
ATVMod::ATVMod() :
m_modPhasor(0.0f),
@@ -308,7 +309,7 @@ void ATVMod::pullVideo(Real& sample)
time(&start);
- for (int i = 0; i < 120; i++)
+ for (int i = 0; i < m_cameraFPSTestNbFrames; i++)
{
camera.m_camera >> frame;
if (!frame.empty()) nbFrames++;
diff --git a/plugins/channeltx/modatv/atvmod.h b/plugins/channeltx/modatv/atvmod.h
index 87bef299f..bca78742d 100644
--- a/plugins/channeltx/modatv/atvmod.h
+++ b/plugins/channeltx/modatv/atvmod.h
@@ -523,7 +523,8 @@ private:
static const float m_blackLevel;
static const float m_spanLevel;
static const int m_levelNbSamples;
- static const int m_nbBars; // number of bars in bar or chessboard patterns
+ static const int m_nbBars; //!< number of bars in bar or chessboard patterns
+ static const int m_cameraFPSTestNbFrames; //!< number of frames for camera FPS test
void apply(bool force = false);
void pullFinalize(Complex& ci, Sample& sample);
diff --git a/plugins/channeltx/modatv/readme.md b/plugins/channeltx/modatv/readme.md
index ee893717e..9a296efee 100644
--- a/plugins/channeltx/modatv/readme.md
+++ b/plugins/channeltx/modatv/readme.md
@@ -2,7 +2,7 @@
Introduction
-This plugin can be used to generate an analog TV signal mostly used in amateur radio.
+This plugin can be used to generate an analog TV signal mostly used in amateur radio. It is limited to black and white images as only the luminance (256 levels) is supported.
Interface
@@ -29,17 +29,19 @@ Use this button to toggle mute for this channel.
The video signal can modulate the carrier in the following modes:
- AM: Amplitude modulation. Modulation index is 90%.
- - FM: Frequency modulation. Excursion is half the bandwidth available given the channel sample rate.
+ - FM: Frequency modulation. Excursion is half the bandwidth available given the channel sample rate. e.g. for 4 MS/s sample rate this is +/-1 MHz (2 MHz total)
6: RF bandwidth
-This is the bandwidth in MHz of the channel filter when the interpolator is engaged. If the sink sample rate is a log2 multiple of the base rate that depends on the standard then there is no interpolation else the channel rate is set to the integer multiple of the base rate just below the sink sample rate.
+This is the bandwidth in MHz of the channel filter when the interpolator is engaged. If the sink sample rate is an integer multiple of the base rate that depends on the standard then there is no interpolation else the channel rate is set to the integer multiple of the base rate just below the sink sample rate.
The base rate depending on the standard is:
- PAL625L: 1 MS/s
- PAL525L: 1.008 MS/s
-
+
+Each horizontal line (including sync and porchs) is split in a number of points so that each point represents a sample. e.g. for a 3 MS/s sample rate in PAL625L standard each point will last 1/3 us (3 points per base rate period).
+
7: Video signal level meter
This is the level meter fed with the video signal. Units are the percentage of the 0.0 to 1.0 modulating video signal.