Michael Black
d0f114b178
Add macro_name to caps structures for rig, rot, and amp devices
2020-03-05 23:48:14 -06:00
Michael Black
d856248178
Add RIG_MODEL macro and change all rigs to support it
2020-03-05 08:44:18 -06:00
Michael Black
ff8ddf018c
astyle all C files
2020-02-23 11:26:09 -06:00
Michael Black
296c10a616
Increase size of vfostr object in netrigctl
2020-02-20 14:54:50 -06:00
Michael Black
e315f5e3ac
Added skeleton for new get_ant function that will return ant_tx and ant_rx if known
...
Every rig will need to be reviewed to fill these in as appropriate
2020-02-18 23:10:14 -06:00
Michael Black
849bc5412b
Add ANT3&4 to dummy rig and promote to stable
2020-02-17 23:13:22 -06:00
Michael Black
164c2d3798
Add range labels to dummy
2020-02-17 06:44:24 -06:00
Michael Black
feba5ac89a
Change rigctl Y and y commands to be 1-based
...
Added simulation of 4 antennas to dummy device
Examples testing 4 antennas with option value=ant#
Rig command: y 0
Antenna: 1
Option: 0
Rig command: Y 1 1
Rig command: Y 2 2
Rig command: Y 3 3
Rig command: Y 4 4
Rig command: Y 5 5
set_ant: error = Invalid parameter
Rig command: y 0
Antenna: 4
Option: 4
Rig command: Y 1 1
Rig command: y 0
Antenna: 1
Option: 1
Rig command: y 1
Antenna: 1
Option: 1
Rig command: y 2
Antenna: 2
Option: 2
2020-02-10 12:17:30 -06:00
Michael Black
7e8938ae65
Changed y command to now use mandatory antenna argument
...
Put a looplimit on icom_get_ant_count trying to get autodetect to work
Changes to icom_get_ant_count to try and get this working
Added dummy antenna # args to rigs that don't care i.e. only have 1 antenna
2020-02-02 08:38:10 -06:00
Michael Black
60215785e1
Changes to get antenna calls working in rigctld
...
Change to ic785x.c to get antenna calls working
Added automatic detection of # of antennas for Icom rigs
Note that rig_get_ant returns a zero-based antenna# and not RIG_ANT1/2/3/4....
rig_set_ant on the other hand takes RIG_ANT1/2/3/4 as the argument for antenna
These RIG_ANT settings are a bit mask
This may have to be converted in the rig back end to whatever the rig expects
2020-01-30 12:12:13 -06:00
Bill Somerville
caed2d73a1
Improved get PTT state handling in dummy backend
2020-01-26 14:53:04 +00:00
Michael Black
bf8e90d214
Remove unused var in netrigctl.c
2020-01-21 18:08:05 -06:00
Michael Black
d853c36fb3
Change get_ant to add another option for icom rigs (and others if needed)
2020-01-21 17:53:12 -06:00
Michael Black
2478f6b0f8
Remove double free from flrig.c
2020-01-17 22:22:09 -06:00
Michael Black
a43193c6a4
Fix cppcheck warning in dummy.c
2020-01-13 22:57:59 -06:00
Michael Black
bcd373c8a6
Fix cppcheck warning in amp_dummy.c
2020-01-12 22:53:45 -06:00
Michael Black
11263d691d
Fix cppcheck warning in trxmanage.c
2020-01-12 22:49:20 -06:00
Michael Black
e426fd6171
Fix cppcheck warning in rot_dummy.c
2020-01-12 22:47:43 -06:00
Michael Black
9c16b55337
Fix cppcheck warning in netrigctl.c
2020-01-12 22:45:31 -06:00
Michael Black
2ec1e3d71f
Fix cppcheck warning in flrig.c
2020-01-12 22:43:40 -06:00
Michael Black
97ea79082a
Fix cppcheck warnings in trxmanager.c
2020-01-08 22:50:03 -06:00
Michael Black
7ee3a702f5
Replace all usleep with hl_usleep
...
Several places where usleep max value could be overflowed
New hl_usleep can take values > 1000000
2020-01-07 23:18:56 -06:00
Michael Black
98a7b825ab
Fix cppcheck warning in netrigctl.c
2020-01-05 17:07:09 -06:00
Michael Black
eec16fa625
Fix cppcheck warnings in netrigctl.c
2019-12-18 22:34:37 -06:00
Michael Black
7d0805628a
Fix cppcheck warnings in flrig.c
2019-12-18 22:33:06 -06:00
Michael Black
a052ea4003
Fix FLRig to expire VFOB cache when VFOA mode is set
2019-12-18 10:41:00 -06:00
Michael Black
b3c6b9d707
Add rig_strrmodes function and fix flrig to print mode list correctly
2019-12-12 09:13:30 -06:00
Michael Black
444fcfa575
Replace XOPEN with AC_USE_SYSTEM_EXTENSIONS
2019-12-10 15:54:12 -06:00
Michael Black
3220c37ff2
Change XOPEN to 600
2019-12-10 14:50:24 -06:00
Michael Black
3a3d66d52d
Now compiles with -std=c99 and no c99 warnings
2019-12-09 22:45:37 -06:00
Michael Black
fb73e5abd7
Fix some cppcheck warnings
...
Fix declarations after statements
Remove some !rig checks...we either don't need them or need them everywhere with a new error code
If you pass a NULL rig you get what you deserve :-)
2019-12-09 17:12:13 -06:00
Michael Black
eca1987360
Clean up cppcheck warnings in trxmanager.c
2019-12-06 16:34:18 -06:00
Michael Black
fa42f54a4a
Clean up cppcheck warnings in netrigctl.c
2019-12-06 16:32:39 -06:00
Michael Black
9a4da880c5
Clean up cppcheck warnings in flrig.c
2019-12-06 16:31:54 -06:00
Michael Black
0e9ebbf31c
Clean up cppcheck warnings in flrig.c
2019-12-06 16:28:24 -06:00
Michael Black
5414d18a57
Clean up cppcheck warnings in dummy
2019-12-06 16:25:49 -06:00
Michael Black
de01f4768a
change retry and timeout for netrigctl to allow binary cmds from w command to work
2019-12-06 07:57:44 -06:00
Michael Black
9d5bc2f385
Update flrig version
2019-12-03 09:29:04 -06:00
Michael Black
8ec67fb582
Add some more FLRig modes
2019-12-03 09:28:43 -06:00
Michael Black
d944c2951a
Fix compile warning on strncat in flrig.c
2019-12-01 22:27:54 -06:00
Michael Black
c9f72d5adf
Add some error checking to flrig.c
2019-12-01 11:09:30 -06:00
Michael Black
6bf3b00c4f
astyle all files
2019-11-30 10:19:08 -06:00
Michael Black
72087f1b10
Change all __FUNCTION__ to __func__
2019-11-30 10:16:28 -06:00
Michael Black
2f4d62709e
Added a dummy snprintf to rig_debug to allow gcc to check format strings
...
This found tons of errors in rig_debug statements
So this patch cleans up all the files that were producing warnings or errors
This should fix a few segfaults when running with debug turned on
2019-11-30 10:04:31 -06:00
Michael Black
686acaec09
Fix segfault in flrig.c due to 64-bit mode conversion - was causing segfault on 32-bit systems
...
Change return value to RIG_MODE_NONE in flrig.c to match the function type
2019-11-27 14:19:42 -06:00
Michael Black
dadc5b04f9
astyle flrig.c
2019-11-27 11:59:14 -06:00
Michael Black
032adbd367
Change strtok in flrig to strtok_r
2019-11-27 11:58:58 -06:00
Michael Black
777eb94825
astyle dummy.c
2019-10-29 22:27:12 -05:00
Michael Black
de418729cf
Typical sequence
...
RX/TX will show correct answers at startup based on rig current status
This sequence is for the dummy device
Rig command: F RX
Frequency: 14500000
Rig command: F TX
Frequency: 14500000
Rig command: V VFOB
Rig command: F 16000000
Rig command: V VFOA
Rig command: S 1 VFOB
Rig command: V TX
Rig command: f
Frequency: 16000000
Rig command: S 0 VFOA
Rig command: f
Frequency: 145000000
What should this behavior be? Return VFOA or VFOB or error?
Rig command: S 0 VFOB
Rig command: f
Frequency: 16000000
2019-10-29 08:03:03 -05:00
Bill Somerville
c0b375c20b
Fix misunderstanding of netrigctl_transaction() return value
...
netrigctl_transaction() returns either an error code (-ve int),
RIG_OK, or the number of characters read from the protocol stream. +ve
return values indicate successful parsing of stream data, not an
error.
2019-08-31 00:38:25 +01:00