1 #if !defined(_RADIOLIB_SSTV_H)
2 #define _RADIOLIB_SSTV_H
4 #include "../../TypeDef.h"
6 #if !RADIOLIB_EXCLUDE_SSTV
8 #include "../PhysicalLayer/PhysicalLayer.h"
9 #include "../AFSK/AFSK.h"
15 #define RADIOLIB_SSTV_SCOTTIE_1 60
16 #define RADIOLIB_SSTV_SCOTTIE_2 56
17 #define RADIOLIB_SSTV_SCOTTIE_DX 76
18 #define RADIOLIB_SSTV_MARTIN_1 44
19 #define RADIOLIB_SSTV_MARTIN_2 40
20 #define RADIOLIB_SSTV_WRASSE_SC2_180 55
21 #define RADIOLIB_SSTV_PASOKON_P3 113
22 #define RADIOLIB_SSTV_PASOKON_P5 114
23 #define RADIOLIB_SSTV_PASOKON_P7 115
26 #define RADIOLIB_SSTV_TONE_LEADER 1900
27 #define RADIOLIB_SSTV_TONE_BREAK 1200
28 #define RADIOLIB_SSTV_TONE_VIS_1 1100
29 #define RADIOLIB_SSTV_TONE_VIS_0 1300
30 #define RADIOLIB_SSTV_TONE_BRIGHTNESS_MIN 1500
31 #define RADIOLIB_SSTV_TONE_BRIGHTNESS_MAX 2300
34 #define RADIOLIB_SSTV_HEADER_LEADER_LENGTH 300000
35 #define RADIOLIB_SSTV_HEADER_BREAK_LENGTH 10000
36 #define RADIOLIB_SSTV_HEADER_BIT_LENGTH 30000
125 #if !RADIOLIB_EXCLUDE_AFSK
144 #if !RADIOLIB_EXCLUDE_AFSK
177 void sendLine(
const uint32_t* imgLine);
185 #if !RADIOLIB_GODMODE
189 #if !RADIOLIB_EXCLUDE_AFSK
193 uint32_t baseFreq = 0;
195 bool firstLine =
true;
Client for audio-based transmissions. Requires Arduino tone() function, and a module capable of direc...
Definition: AFSK.h:16
Provides common interface for protocols that run on LoRa/FSK modules, such as RTTY or LoRaWAN....
Definition: PhysicalLayer.h:54
Client for SSTV transmissions.
Definition: SSTV.h:117
void idle()
Sends out tone at 1900 Hz.
Definition: SSTV.cpp:207
int16_t setCorrection(float correction)
Set correction coefficient for tone length.
Definition: SSTV.cpp:193
void sendHeader()
Sends synchronization header for the SSTV mode set in begin method.
Definition: SSTV.cpp:212
int16_t begin(float base, const SSTVMode_t &mode)
Initialization method for 2-FSK.
Definition: SSTV.cpp:182
void sendLine(const uint32_t *imgLine)
Sends single picture line in the currently configured SSTV mode.
Definition: SSTV.cpp:249
uint16_t getPictureHeight() const
Get picture height of the currently configured SSTV mode.
Definition: SSTV.cpp:288
SSTVClient(PhysicalLayer *phy)
Constructor for 2-FSK mode.
Definition: SSTV.cpp:157
unsigned long RadioLibTime_t
Type used for durations in RadioLib.
Definition: TypeDef.h:611
Structure to save data about supported SSTV modes.
Definition: SSTV.h:69
tone_t tones[8]
Sequence of tones in each transmission line. This is used to create the correct encoding sequence.
Definition: SSTV.h:99
uint8_t visCode
Unique VIS code of the SSTV mode.
Definition: SSTV.h:74
uint16_t scanPixelLen
Pixel scan length in us.
Definition: SSTV.h:89
uint16_t height
Picture height in pixels.
Definition: SSTV.h:84
uint16_t width
Picture width in pixels.
Definition: SSTV.h:79
uint8_t numTones
Number of tones in each transmission line. Picture scan data is considered single tone.
Definition: SSTV.h:94
Structure to save data about tone.
Definition: SSTV.h:42
uint16_t freq
Frequency of tone in Hz, set to 0 for picture scan tones.
Definition: SSTV.h:62
RadioLibTime_t len
Length of tone in us, set to 0 for picture scan tones.
Definition: SSTV.h:57
enum tone_t::@1 type
Tone type: GENERIC for sync and porch tones, SCAN_GREEN, SCAN_BLUE and SCAN_RED for scan lines.