Mike Black W9MDB
6ca9844196
In rig.c do not override curr_vfo if it gets set by the backend
...
https://github.com/Hamlib/Hamlib/issues/853
2021-11-05 17:23:10 -05:00
Mike Black W9MDB
ffe3c9d012
Revert "Change rig_set_split_mode to use TOGGLE first, then set_vfo"
...
This reverts commit c1c549cbf3
.
2021-11-05 06:37:45 -05:00
Mike Black W9MDB
e7530643a0
In rig.c set rxvfo and txvfo to current if currvfo is requested
...
https://github.com/Hamlib/Hamlib/issues/838
2021-11-03 15:00:38 -05:00
Mike Black W9MDB
c1c549cbf3
Change rig_set_split_mode to use TOGGLE first, then set_vfo
...
https://github.com/Hamlib/Hamlib/issues/838
2021-11-03 13:11:11 -05:00
Mike Black W9MDB
b4f4228650
Revert "Change rig_set_split_mode to disable/enable ptt by rig model as needed"
...
This reverts commit c1c1f1f053
.
2021-11-03 12:37:38 -05:00
Mike Black W9MDB
c1c1f1f053
Change rig_set_split_mode to disable/enable ptt by rig model as needed
...
https://github.com/Hamlib/Hamlib/issues/838
2021-11-03 08:16:39 -05:00
Mike Black W9MDB
9842cdb1f3
Some minor changes to serial.c as we progress to a faster method
...
https://github.com/Hamlib/Hamlib/issues/850
2021-11-02 11:17:19 -05:00
Mike Black W9MDB
8fe190d622
Reduce error messages about RIG_VFO_OTHER which only applies to some rigs like Icom rigs with the 0x25 command
...
Add a flush_flag to read_string so that the new serial_flush will not produce a timeout value when flushing
https://github.com/Hamlib/Hamlib/issues/835
2021-11-01 23:43:45 -05:00
Mike Black W9MDB
603223d493
During rig_set_split_mode and non-targetable mode we will turn off split, set mode, and turn split back on. This should prevent some ugly flashing on Yaesu rigs
...
https://github.com/Hamlib/Hamlib/issues/838
2021-11-01 22:15:50 -05:00
Mike Black W9MDB
dc585776fc
Add rig pointer to hamlib_port_t
2021-10-30 08:53:45 -05:00
Mike Black W9MDB
84fb123202
Pass empty stopset to read_string so it can determine appropriate stopset for async data
2021-10-30 08:22:55 -05:00
Mike Black W9MDB
44871f7e9b
Change serial_flush to read any buffered data instead of flushing.
...
Perhaps to support transceive mode
2021-10-29 17:48:43 -05:00
Mike Black W9MDB
1ed398466d
Revert "Change serial_flush to read data instead of TCFLUSH"
...
Was causing timing problems
This reverts commit d28f440968
.
2021-10-29 14:38:40 -05:00
Mike Black W9MDB
f071adac8f
Revert "Revert "Revert "Fix hex print in serial_flush"""
...
Straighening out these reverts
This reverts commit b2646f54a4
.
2021-10-29 14:38:14 -05:00
Mike Black W9MDB
b2646f54a4
Revert "Revert "Fix hex print in serial_flush""
...
Was causing timing problems
This reverts commit bf2867021e
.
2021-10-29 14:33:31 -05:00
Mike Black W9MDB
bf2867021e
Revert "Fix hex print in serial_flush"
...
Was causing timing problems
This reverts commit 4a18fa2282
.
2021-10-29 14:33:08 -05:00
Mike Black W9MDB
4a18fa2282
Fix hex print in serial_flush
2021-10-29 11:43:41 -05:00
Mike Black W9MDB
d28f440968
Change serial_flush to read data instead of TCFLUSH
...
This is for the future to enable transceive mode on rigs
2021-10-29 11:24:16 -05:00
Mike Black W9MDB
9d2aaa00c0
Disallow set_split_vfo when PTT is active
...
https://github.com/Hamlib/Hamlib/issues/844
2021-10-28 09:49:18 -05:00
Mike Black W9MDB
6f82645ee8
Revert "Disallow set_split_vfo when ptt is active"
...
Had other temporary code in it
This reverts commit db9cd44bcf
.
2021-10-28 09:46:52 -05:00
Mike Black W9MDB
db9cd44bcf
Disallow set_split_vfo when ptt is active
...
https://github.com/Hamlib/Hamlib/issues/844
2021-10-28 09:44:57 -05:00
Mike Black W9MDB
d18c3a8111
Fix cppcheck warning in network.c
2021-10-24 00:03:48 -05:00
Mike Black W9MDB
5cdbdd04c6
Add rig backends in 0 range (maingly FlRig and rigctld) to targetable_ptt -- should avoid some vfo swapping going on
...
https://github.com/Hamlib/Hamlib/issues/836
2021-10-22 17:15:35 -05:00
Mike Black W9MDB
1ca3d34010
Change Yaeus send_voice_mem to built-in function rather than FUNC implementaion
...
https://github.com/Hamlib/Hamlib/issues/830
2021-10-22 07:29:27 -05:00
Mike Black W9MDB
014219c4ad
Add RIG_OTHER_VFO handling to rig_get_cache
...
https://github.com/Hamlib/Hamlib/issues/835
2021-10-21 22:31:38 -05:00
Mike Black W9MDB
c9d7a924c7
Add RIG_FUNC_SEND_VOICE_MEM with FT991 as the 1st implementation
...
https://github.com/Hamlib/Hamlib/issues/830
2021-10-21 17:36:54 -05:00
Mike Black W9MDB
024f7f061c
Add RIG_MODE_IQ for FunCube Pro Plus and RS-HFIQ
...
https://github.com/Hamlib/Hamlib/issues/829
2021-10-18 23:01:38 -05:00
Mike Black W9MDB
7f1faf24c0
Add a few more modes to the mode_map
2021-10-16 10:14:03 -05:00
Mike Black W9MDB
a8a317f6ab
Move parse_mode error message to the function itself
2021-10-16 09:45:24 -05:00
Mike Black W9MDB
dc70e2a41f
Fix LSB/USB in rigctl_parse_mode
2021-10-16 09:27:04 -05:00
Mike Black W9MDB
4462fe423e
Add USB-D and LSB-D to mode_map for Log4OM mode requests
2021-10-16 09:20:24 -05:00
Mike Black W9MDB
8a983cae80
Clean up MUTEX declarations in rig.c
2021-10-14 23:06:57 -05:00
Mike Black W9MDB
da34930ab9
Fix rig_get_mode cache time printout
2021-10-14 11:36:34 -05:00
Mike Black W9MDB
ac43daa998
Add some more elapsed time monitoring
2021-10-14 11:32:30 -05:00
Mike Black W9MDB
d90d3eb0d0
Use EAGAIN error to retry when serial port is unavailable
...
https://github.com/Hamlib/Hamlib/issues/818
2021-10-10 08:33:31 -05:00
Mike Black W9MDB
4b77fc1eb3
Allow for EBUSY return during port read and retry 10x5ms for 50ms total before returning an error
...
https://github.com/Hamlib/Hamlib/issues/818
2021-10-08 23:58:07 -05:00
Mike Black W9MDB
2319d17389
Fix rigs so that VFOB/A split works as well as VFOA/B
...
https://github.com/Hamlib/Hamlib/issues/745
2021-10-08 23:55:48 -05:00
Mike Black W9MDB
dd1376becf
Fix debug statement
...
https://github.com/Hamlib/Hamlib/issues/812
2021-09-28 23:13:37 -05:00
Mike Black W9MDB
da87903e3c
Fix set_vfo for non TARGETABLE_FREQ rigs like the FT100
...
Was not setting VFOB when requested
https://github.com/Hamlib/Hamlib/issues/812
2021-09-28 23:03:56 -05:00
Mike Black W9MDB
7c42d6ddb0
Fix LOCK macros
2021-09-28 23:03:06 -05:00
Mike Black W9MDB
43251254c5
New mutex macros to be resued across all rig functions to support async multicast actions
2021-09-28 22:57:35 -05:00
Mike Black W9MDB
7bd407beda
Add some more elapsed time entries and reduce ELAPSED2 macro
2021-09-25 23:26:49 -05:00
Mike Black W9MDB
2e2543a0fc
Fix ELAPSED2 time
2021-09-25 23:16:08 -05:00
Mike Black W9MDB
cc5010d0e3
Add otherVFO to misc.c
2021-09-25 11:45:42 -05:00
Mike Black W9MDB
0b9b719997
Add elapsed time macros and put in vfo and freq calls
2021-09-25 08:59:57 -05:00
AuroraRAS
1c3250f6f4
add androidsensor rotator
...
The androidsensor rotator is not a real rotator, it uses the accelerometer sensor and magnetic field sensor of the cell phone or tablet to perform attitude determination for your antenna and the phone tied to it.
Now you can wave your antenna to find radio signals.
Signed-off-by: AuroraRAS <chplee@gmail.com>
2021-09-25 09:51:11 +08:00
Wouter van Gulik
a3ab4a4312
Fix rig_cookie: use lock for reads and write.
...
Ensure we never print more then HAMLIB_COOKIE_SIZE otherwise we read
out-of-bounds.
Drop stray printf.
Add tests for invalid input and overly large input.
Fix test2 to release the cookie.
2021-09-20 22:10:55 +02:00
Wouter van Gulik
d9e1f5aac4
Fix and document rig_cookie;
...
Example in doxygen was wrong.
Description of parameters was wrong; we return an int so we cannot return
a NULL.
NULL check for cookies is needed for all 3 commands so move it up, fixing the
missing one.
Length check was wrong; cookie needs to be at least as large as
HAMLIB_COOKIE_SIZE otherwise subsequent checks will always faila
Document the 3 cookie commands a bit.
2021-09-19 22:52:41 +02:00
Wouter van Gulik
82785f81dc
Replace RIG_EIO with RIG_EINVAL when checking arguments. RIG == NULL is
...
an argument error. A rig not properly inited (caps == NULL) is also an
invalid argument.
2021-09-19 22:18:03 +02:00
Wouter van Gulik
f029769fb7
Add arguments check for rig_get_cache, rig_stop_morse, rig_wait_morse,
...
rig_get_range, rig_set_vfo_opt, rig_get_infget_info.
2021-09-19 22:12:21 +02:00