Commit Graph

2611 Commits

Author SHA1 Message Date
Bill Somerville
59e59087bd Only generate USLetter size PDFs for languages that might need it
Only en-US, fr-CA, es-MX and es-CO use the USLetter paper size.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6646 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-24 19:05:03 +00:00
Steven Franke
45ba25f6ed Add code needed to unpack decoded message.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6645 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-24 15:08:57 +00:00
Steven Franke
e68674214c Remove obsolete comments.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6640 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-24 01:24:32 +00:00
Steven Franke
f5af6525f5 Changes needed to build ldpc library and ldpcsim.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6639 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-24 01:19:40 +00:00
Steven Franke
9d72f280ad ldpcsim.f90 is a simulator that creates valid JT-mode packed 72-bit messages and implements an 8-bit hash check for testing the (N,80) codes.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6638 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-24 01:12:38 +00:00
Bill Somerville
8cf1b33b59 Update Mac build instructions to reflect latest O/S MacPorts and Qt versions
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6637 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-23 23:40:30 +00:00
Bill Somerville
946ee56db2 Remove erroneously committed tool tip text
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6636 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-23 23:40:05 +00:00
Bill Somerville
ed6b37a87a Fix minor typo and remove potentially non-portable UI size constraints
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6632 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-23 11:22:48 +00:00
Bill Somerville
169692fc0a Remove restrictions on multiple configurations maintenance
The initial conservative implementation has been replaced by a simpler
one that swaps configurations around in the settings file as specified
by the multiple configurations menu options.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6631 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-21 18:56:59 +00:00
Bill Somerville
1cae0b8aa9 Move temporary directory creation and deletion outside of MainWindow
Changing configuration causes  WSJT-X and JTAlert to get  into a fight
for the temporary directory. By moving the creation and clearup of the
temporary directory outside  of the configurations loop  this issue is
minimized to no worse than before multiple configurations were added.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6630 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-20 21:59:22 +00:00
Bill Somerville
e6c59a42b5 Ensure that WSPR band hopping is disabled when Rig is None
Also added  a new configuration query  method to check if  Rig is None
i.e. a dummy rig.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6629 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-20 20:22:23 +00:00
Bill Somerville
3b46e140af Disable Internet spotting when rig control is not working
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6628 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-20 19:33:33 +00:00
Bill Somerville
119a98f99a Disable WSPR band hopping on rig failure before showing error message
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6626 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-19 13:50:05 +00:00
Joe Taylor
c849652940 Correct the alignment of data returned to id2 when reference spectrum is used.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6625 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-18 14:37:44 +00:00
Joe Taylor
1a9c6b3b6f Correct a problem with flagging supposedly bad data when reference spectrum
is used.


git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6624 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-18 14:15:09 +00:00
Bill Somerville
4cebdddfe5 Add multiple configurations navigation and management
Multiple configurations  are accessed and  maintained from a  new main
window menu bar  pop up menu "Configurations". The  prior settings are
the  "Default"  entry. New  configurations  may  be added  by  cloning
existing ones.  Maintenance  and navigation is via sub  menus for each
configuration.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6623 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-17 23:39:12 +00:00
Bill Somerville
c40c824540 Round frequencies returned from Hamlib to the nearest Hertz
Hamlib can return  fractional decimal Hertz for some  devices that use
internal fixed  point binary registers  e.g.  devices using  the Si570
clock generator as  a frequency synthesizer.  Rounding  to the nearest
Hertz should ensure accurate round tripping of frequencies.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6622 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-14 19:25:18 +00:00
Joe Taylor
c7dfc1ee00 1. Protect against wrong ID of f0 being fit by lorentzian(), when Ftol is large.
2. When switching to JT65 mode, go through JT9 first.


git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6621 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-14 13:22:05 +00:00
Joe Taylor
3aca283554 In single-decode mode, treat "Aggressive decoding level" as 1 if set to 0.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6620 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-13 13:52:45 +00:00
Joe Taylor
94be009454 Fix a bug in handling "ncount" after a hinted decode. Thanks, Igor!
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6619 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-13 13:16:10 +00:00
Bill Somerville
30a0b92340 Minor rig control trace adjustment
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6618 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-12 23:23:04 +00:00
Bill Somerville
8d13c8e1ff Restore double click on decode behaviour broken by disable Tx DF spin box
The changes  to fix the  Tx DF  at 1000Hz when  VHF & up  features are
enabled had an undesirable side effect of disabling double clicking on
decodes  because  this was  disabled  by  the  Tx  DF spin  box  being
disabled. The  Tx DF  spin box  being disabled  in VHF  & up  mode may
change but this change fixes this issue regardless.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6617 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-12 22:07:14 +00:00
Joe Taylor
90beb50cbe 1. Add AGC for waterfall in *Ref Spec* mode.
2. Don't display orange warning bar when in WSPR mode.
3. Fix a longstanding compiler warning.


git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6616 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-12 19:54:15 +00:00
Joe Taylor
092a2301a0 Roll off the corrected spectrum at points where the uncorrected
spectrum is -20 dB relative to 1500 Hz -- or at maximum width 240 to 4000 Hz.


git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6615 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-12 19:20:14 +00:00
Joe Taylor
3b2a918eb0 Rationalize the "NTol" usage in JT65 single-decode modes.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6614 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-12 14:24:55 +00:00
Joe Taylor
2babc3c9c7 Need to accommodate cases where radio's filter cuts off steeply above 240 or
below 4000 Hz.


git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6613 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-12 13:47:34 +00:00
Joe Taylor
592625c4bb Remove a diagnostic tool in plotter.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6612 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-12 13:32:31 +00:00
Joe Taylor
3c1fe29456 Protect against bounds errors with large NTol.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6611 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-12 13:13:27 +00:00
Bill Somerville
38cf525969 Use fixed 1000Hz Tx DF in VHF & up QSO modes
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6610 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-11 23:29:29 +00:00
Bill Somerville
4350c682ec More consistent checks for WSPR modes
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6609 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-11 23:29:21 +00:00
Joe Taylor
b843894061 First working code offering optional computation and use of a reference
spectrum.


git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6608 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-11 20:53:54 +00:00
Joe Taylor
3541d12a67 Test program
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6607 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-11 15:24:55 +00:00
Joe Taylor
03d74a6208 Fix a problem in hint65. (More tests needed!)
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6606 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-10 19:02:59 +00:00
Joe Taylor
07151fb980 For now, at least: always recompute hypothetical messages in hint65.f90.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6605 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-09 17:11:44 +00:00
Joe Taylor
35f7f73a7a Starting to implement display of reference spectrum in plotter.cpp.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6604 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-09 14:51:20 +00:00
Joe Taylor
50cbdbb807 More work toward a usable reference spectrum.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6603 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-08 20:03:29 +00:00
Joe Taylor
44eccce1bb Compute reference spectrum on request.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6602 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-08 18:07:08 +00:00
Joe Taylor
23298c1743 Rename refspec() to refspectrum().
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6601 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-08 15:55:28 +00:00
Joe Taylor
88e47a5941 Working on implementing reference spectra.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6600 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-08 15:23:32 +00:00
Bill Somerville
700cc37c88 Add support for HRD control of rigs with an HRD Data drop down
Rigs like  the Icom IC-7100  have a  Data drop down  on the HRD  UI to
switch  the rig  in and  out  and query  the data  modes. This  change
supports that by using the On and Off selections to set and query data
mode for suitable modes (USB/LSB/FM as DIG_U/DIG_L/DIG_FM).

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6599 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-08 09:28:53 +00:00
Joe Taylor
da098e4a76 Starting to implement accumulation of reference spectrum.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6598 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-07 20:02:32 +00:00
Bill Somerville
f7b02f8296 Ensure that rig control split and mode are only changed when allowed
Only when split  operating is not none should split  be touched on the
rig, likewise only  when Settings->Radio->Mode is not  none should the
rig mode be touched.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6597 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-07 18:39:46 +00:00
Bill Somerville
64f1de08c8 Squash another warning
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6596 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-07 00:02:24 +00:00
Bill Somerville
720412ff5a Squash some more warnings
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6595 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-06 23:30:32 +00:00
Bill Somerville
dd6f48ccca Second attempt to squash ingnored return errors on fread()
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6594 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-06 23:18:29 +00:00
Bill Somerville
4dbbf2d819 Squash some more warnings
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6593 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-06 23:11:22 +00:00
Bill Somerville
def440bf8c Fix the errors caused by fixing warnings!
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6592 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-06 22:49:03 +00:00
Bill Somerville
e565e1796a Clean up some compiler warnings
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6591 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-06 22:37:22 +00:00
Bill Somerville
2cfbb15b4f Rig control overhaul to implement generic Doppler shift tracking
The  concept of  a nominal  receive  and transmit  frequency has  been
introduced. This is  used as a base frequency  for Doppler correction,
frequency setting  and reporting. The  start up frequency is  now zero
which is  updated by the first  rig control status report.  This needs
more  work to  accommodate  calling frequency  plus working  frequency
operation as is used for random MS operation etc..

The  main  window  frequency  display  now  shows  the  transmit  dial
frequency while transmitting.

The mode changing logic sequence has been changed such that the rig is
correctly put  into and  taken out  of split mode  as required  by the
target mode.  This also  avoids the "other"  VFO having  its frequency
changed when  entering a mode that  does not use split  operating like
WSPR.

The main window  band combo box edit  may now be used to  input an kHz
offset  from the  current MHz  dial  frequency. This  is intended  for
setting  a sked  or working  frequency on  the VHF  and up  bands. For
example the working frequency for 23cms  might be set to 1296MHz and a
working  frequency of  1296.3MHz would  be selected  by selecting  the
23cms band  with the combo box  drop down list and  then entering 300k
into the band combo box edit widget.

When using JT4 modes a CTRL+Click on the waterfall adjusts the nominal
frequency such  that the frequency  clicked on  becomes the Tx  and Rx
frequency using  the fixed 1000Hz  DF that  JT4 modes use.   This will
probably be extended to all QSO modes when used in VHF & up mode. This
assumes that 1000Hz is an optimal DF  for both Tx and Rx and therefore
one  can "net"  to an  off frequency,  but visible  on the  waterfall,
caller with one click.

Improvements to OmniRig  rig control including use of  the serial port
control lines RTS or DTR, on the  CAT serial port used by OmniRig, for
PTT control.

Incrementing transaction sequence numbers added to messages to and from
the rig control  thread. This enables round trip status  to be tracked
and associated with a request. For  example a command that might cause
several  asynchronous  status  updates  can  now  be  tracked  in  the
originating thread such  that it is clear which updates  are caused by
executing the  request. This in turn  allows updates to be  held until
the request is complete i.e. the  state is consistent with the results
of the request.

Messages  to the  rig control  thread are  now posted  as a  new state
(Transceiver::TransceiverState) object. The  rig control thread tracks
requests and  actions any differences  between the prior  requests and
the new state.

The rig  control thread is now  stored on the  heap so that it  can be
closed down  and released as needed.  Along with this the  rig control
close  down  semantics  are  better defined  avoiding  some  potential
deadlock situations.

If the rig  is placed into split  mode it will be  reverted to simplex
mode when the rig connection is closed.

When  using direct  rig control  via Hamlib,  rigs that  have A/B  VFO
arrangements and  no method to query  the current VFO like  many Icoms
and  the Yaesu  FT-817/857/897(D)  series now  have smarted  frequency
updating requiring no  VFO changes when changing  the frequency.  This
is particularly  important when doing  Tx Doppler correction  to avoid
glitches.

The implementation  of emulated  split operating  mode ("Fake  It") is
simplified and improved.

A dummy  Hamlib transceiver for PTT  control on a separate  port is no
long instantiated if CAT or VOX PTT control is selected.

The resolution and  any rounding of the rig CAT  frequency set and get
commands is determined automatically  upon opening the rig connection.
This is needed to determine the  rate of frequency updates for Doppler
tracking. It also allows the rig to be more accurately controlled.

Frequency  calibration is  calculated separately  for the  receive and
transmit frequencies.

Whether  the  rig  modulation  mode  should be  controlled  is  now  a
constructor  argument rather  than  being passed  with individual  rig
control requests.

Doppler  shift  correction  is   considerably  enhanced  with  simpler
controls and much  better rig control.  A new mode  of tracking called
"receive only" is introduced for those with rigs that cannot be QSY:ed
via  CAT  when transmitting.   Such  rigs  have a  Doppler  correction
calculated  for the  middle of  the next  transmit period  just before
transmission starts. While  using Doppler tracking it  is now possible
to adjust the  sked frequency either using the new  kHz offset feature
of the main  window band combo box  or by directly tuning  the rig VFO
knob while holding down the CTRL key.

The astronomical data window that includes Doppler tracking control is
now opened  and closed using a  checkable menu item to  avoid it being
accidentally closed.

Debug  configuration  rig  control  diagnostic  messages  now  have  a
facility argument for clearer and more standardized trace messages.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6590 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-06 17:11:58 +00:00
Bill Somerville
d864e7f4cb Allow split operating for "None" rig, use for testing only not for release
Setting  the  CMake  option WSJT_RIG_NONE_CAN_SPLIT=ON  will  buold  a
version taht allows split operating with  the dummy rig. This must not
be shipped since it will generate incorrect Tx tones.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6589 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-04-06 17:11:49 +00:00