diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-10-29 22:45:25 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-10-29 22:45:25 +0000 |
| commit | 6c8e7093c0c01dbf0e7b2d3b3e8909a209faebbd (patch) | |
| tree | 8d4a8ff6b2aff51cd6235b9923eb9c5db5017075 /Modulate.c | |
| parent | a724b7ca21df2a3b98bc203f719396d5e62d55d4 (diff) | |
| parent | d0709a1e0a04bf74f240dc0fdb8697f030b68cea (diff) | |
Update upstream source from tag 'upstream/0.0.0.73_rc1'
Update to upstream version '0.0.0.73~rc1'
with Debian dir 676c65807274e34716fecd1055a3812ab33a8229
Diffstat (limited to 'Modulate.c')
| -rw-r--r-- | Modulate.c | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -1025,6 +1025,34 @@ void sendCWID(char * strID, BOOL CWOnOff, int Chan) initFilter(200, Filter, Chan);
+ // if sending 1500 cal tone send mark tone for 10 secs
+
+ if (strcmp(strID, "1500TONE") == 0)
+ {
+ float m_amplitude = 30000.0f;
+ float m_frequency = 1500.0f;
+ float m_phase = 0.0;
+ float m_time = 0.0;
+ float m_deltaTime = 1.0f / 12000;
+
+ float x;
+ // generate sin wave in mono
+ for (int sample = 0; sample < 120000; ++sample)
+ {
+ x = m_amplitude * sin(2 * M_PI * m_frequency * m_time + m_phase);
+ ARDOPSampleSink(x);
+ m_time += m_deltaTime;
+ }
+
+
+ ARDOPTXPtr[Chan] = 0;
+ ARDOPTXLen[Chan] = Number;
+ Number = 0;
+
+ return;
+
+ }
+
//Generate leader for VOX 6 dots long
for (k = 6; k >0; k--)
|
