George Baltz N3GB
2360882b0c
Still more scope shrinkage
2026-06-23 22:55:11 -04:00
George Baltz N3GB
37df17c1a2
Drop a few more cppcheck dings
...
Use c11 `for` statements
2025-12-26 12:55:33 -05:00
Daniele Forsi IU5HKX
47f60d4ad7
[simulators] Remove unused includes
...
Found by iwyu.
2025-08-30 09:43:45 +02:00
Nate Bargmann
93a24356e5
Merge GitHub PR #1831
2025-08-07 07:26:47 -05:00
Daniele Forsi IU5HKX
9dd0009f9e
Remove unused define
2025-08-05 22:22:50 +02:00
Daniele Forsi IU5HKX
151549bb3b
Remove disabled code
...
None of these simulators does multicast networking.
2025-08-04 11:36:03 +02:00
Daniele Forsi IU5HKX
790820ab22
Refactor to remove code duplication of one version of getmyline()
2025-08-04 11:36:03 +02:00
Daniele Forsi IU5HKX
8d8d0328bf
Fix typos
2025-08-03 10:49:23 +02:00
Daniele Forsi IU5HKX
df7fbbec9b
Have IWYU fix the includes
2025-08-03 09:35:03 +02:00
Daniele Forsi IU5HKX
98a81a5074
Replace magic number with a defined constant
...
The same constant is used by memset() in getmyline().
2025-08-03 09:35:03 +02:00
Daniele Forsi IU5HKX
7fc222dc88
Remove perror()
...
Makes getmyline() identical to the other simulators.
2025-08-03 09:35:03 +02:00
Daniele Forsi IU5HKX
ecece62828
Refactor to remove code duplication of openPort()
...
The code wasn't indented in simic7300.c and simic7700.c but it was
identical.
2025-08-03 09:35:02 +02:00
Daniele Forsi IU5HKX
e8467032ad
Remove unused includes
...
Found with IWYU.
2025-08-02 13:13:10 +02:00
Nate Bargmann
79f8b1cde8
Merge HitHub PR #1811
2025-07-22 22:11:06 -05:00
Daniele Forsi IU5HKX
0267068220
Fix ambiguity between system includes and Hamlib includes
2025-07-22 23:33:57 +02:00
George Baltz N3GB
062f260c07
Clean up some cppcheck gripes in simulators/
2025-07-21 23:07:56 -04:00
George Baltz N3GB
3952f030d4
More copyright updates
2025-07-11 13:43:47 -04:00
George Baltz N3GB
9f43659831
Fix gain controls in simts890.c
...
And a couple of other hiccups found by cppcheck
2025-05-29 05:41:39 -04:00
Daniele Forsi IU5HKX
4109d606b5
Fix typos
2025-05-22 21:55:10 +02:00
Daniele Forsi IU5HKX
3448c735b0
Remove non-working compilation instructions from comments
...
Some instructions were a copy and paste error, some did not link
to Hamlib. Compile all simulators with: make -C simulators check
or compile a single simulator replacing "check" with the name of
the simulator.
Fixed with:
perl -pe 's,// gcc.*\n,,' -i *.c
perl -pe 's,// On mingw.*\n,,' -i *.c
2025-04-30 19:34:22 +02:00
Daniele Forsi IU5HKX
037c4953ed
Fix name of function in error messages
...
Fixed with:
perl -pe s/pstname/ptsname/ -i *.c
2025-04-30 19:22:36 +02:00
George Baltz N3GB
8bd74aa3bc
Minimal support for KY commands in simts890.c
2024-12-02 13:11:20 -05:00
Daniele Forsi IU5HKX
e480bc7479
Fix typos
2024-12-01 21:59:11 +01:00
George Baltz N3GB
10292fd338
Astyle simts890.c
...
Man, this is ugly!
2024-11-06 10:31:44 -05:00
George Baltz N3GB
dd9696cf2d
Add RIT/XIT commands (FS, RC, RD/RU, RF, RT, XT) to simts890.c
...
Add RIT/XIT data to IF command.
FS probably affects more places, TBD
Constify some strings
2024-11-06 10:30:06 -05:00
George Baltz N3GB
d0b1925234
Annotate legacy (undocumented) commands in simts890.c
...
Allow them to be disabled
Relevant to issues #1380 and #899
2024-11-06 10:26:43 -05:00
George Baltz N3GB
27767fcfc1
Add traffic tracing to simts890.c
2024-11-06 10:22:43 -05:00
Mike Black W9MDB
5c269964c2
astyle files in preparation for release 4.6
2024-11-06 08:07:34 -06:00
George Baltz N3GB
ab883be850
Make FR & FT commands aware of new vfo structs.
...
Get rid of vfo_rx & vfo_tx; find both thru vfoLR.
2024-10-30 10:01:10 -04:00
George Baltz N3GB
da5e490b24
Clean up
...
Fix up NB commands.
Update VFO in case copy caused a band change.
Change MODEL to TYPE to match Kenwood nomenclature, make it
easier to change via cli.
Comments
2024-10-30 10:01:10 -04:00
George Baltz N3GB
eead7a572a
Correct some split problems and connect VFO ops
...
Fix SP command to match real rig. Still needs work.
Add split status to IF response.
Add EC and VV commands, and explain that they are not what they're
described to be.
2024-10-30 10:01:10 -04:00
George Baltz N3GB
671d45f337
Add DN/UP, FC, and UD commands to simts890.c
...
Yet more ways to apply a delta to a VFO
2024-10-30 10:01:10 -04:00
George Baltz N3GB
3445d94c8d
Implement step sizes for some freq changes
...
Add a few more placeholders
Disable #include <hamlib/rig.h>; cleanse namespace
Typos and formatting
2024-10-30 10:01:10 -04:00
George Baltz N3GB
d209c655b0
Change FA/FB/SF to use band memories
...
Change name of kvfo_t to denote it's a pointer
Add routines to convert freq to band and to get a new band's vfo
2024-10-30 10:01:10 -04:00
George Baltz N3GB
8bbf60d5c8
More VFOs as objects.
...
Add band memory objects.
Use them to implement BD/BU.
Default to Model K; E as compile time option
Would have been easier as real OOP objects; C syntax is clunky, and the
parentheses look weird. Oh well.
Still TODO: tie all the other frequency settings into band memories. May
need some storage rearrangement to make functions cleaner.
2024-10-30 10:01:10 -04:00
George Baltz N3GB
7aa739a97d
Get rid of ghost commands.
...
They ain't coming back.
2024-10-30 10:01:10 -04:00
George Baltz N3GB
ddf51e6b52
Convert VFOs into objects(structs).
...
Handle freq and mode as one object. Simplifies vfo handling, makes
OM/SF commands easier, enables memory ops(WIP), mimics rig ops.
Remove more rig.h idioms. TODO: hl_usleep()
Minor typo and formatting cleanups
2024-10-30 10:01:10 -04:00
George Baltz N3GB
2b99b9d2ef
Reduce dependency on include/hamlib/rig.h
...
Remove some of the rig.h idioms. Not quite clean-room status,
but less chance of the simulator simulating hamlib, rather
than the real rig. More in next commit.
2024-10-30 10:01:10 -04:00
George Baltz N3GB
ebe685125e
More fixes for simts890.c
...
More bogus commmands nullified
Typos and comments
Add SC, TS, OM
2024-10-30 10:01:10 -04:00
George Baltz N3GB
c4f7cf35f9
Replace raw write() calls with macro
...
So they can be aggregated for multiple commands in one message
2024-09-21 06:07:50 -04:00
George Baltz N3GB
c37fb872cd
Still more tweaks to simts890.c
...
Remove some bogus commands
Add meters and antenna control
2024-09-20 16:22:27 -04:00
George Baltz N3GB
8a6a500ccd
Tweaks to simts890.c
...
Don't include trailing null byte in responses
Zero fill response data
Filter a few commands - not complete coverage yet
Still no simulated clock.
2024-09-14 14:11:49 -04:00
George Baltz N3GB
1ff8527864
Add just enough to simts890.c to fake kenwood_get_clock.
...
Still needs a settable synthetic clock for kenwood_set_clock.
Time zone offsets need to be tied to both clocks, and to strftime.
When finished copy to simts990.c, dropping P6 from CK0.
2024-09-10 21:30:24 -04:00
Mike Black W9MDB
93bd44c3d5
Update simts890.c
2024-04-23 11:19:24 -05:00
Mike Black W9MDB
3dac2efb48
Update simts890.c
2024-04-06 15:42:46 -05:00
George Baltz N3GB
45e097d3a4
Update simts890.c
...
Make IF return RX/TX status
Document IF data, reformat IF & SF commands
2024-02-13 13:11:24 -05:00
George Baltz N3GB
b6dc6110a6
Bring simts890.c a little closer to the real thing
...
Still needs more work.
2024-02-01 17:34:47 -05:00
George Baltz N3GB
35e49ffdfc
Make simulator match the Real World(TM)
...
Add missing P4
Repair RIG_LEVEL_STRENGTH
2024-01-31 12:37:14 -05:00
Mike Black W9MDB
fff1bbc8cd
Add RFPOWER_METER_WATTS to TS890
...
https://github.com/Hamlib/Hamlib/issues/1497
2024-01-31 10:29:46 -06:00