Skip to content

Commit

Permalink
Improve FTDX3000 antenna handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mdblack98 committed Feb 17, 2021
1 parent 41f3fb5 commit 5964e1d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
10 changes: 5 additions & 5 deletions doc/man1/rigctl.1
Original file line number Diff line number Diff line change
Expand Up @@ -675,11 +675,11 @@ For the IC-7851, FTDX3000 (and perhaps others) it means this:
.IP
.in +4n
.EX
1 = TX/RX = ANT1
2 = TX/RX = ANT2
3 = TX/RX = ANT3
4 = TX/RX = ANT1/ANT4 or ANT1/ANT3
5 = TX/RX = ANT2/ANT4 or ANT2/ANT3
1 = TX/RX = ANT1 FTDX3000=ANT1/ANT3
2 = TX/RX = ANT2 FTDX3000=ANT2/ANT3
3 = TX/RX = ANT3 FTDX3000=ANT3
4 = TX/RX = ANT1/ANT4
5 = TX/RX = ANT2/ANT4
6 = TX/RX = ANT3/ANT4
.EE
.in
Expand Down
10 changes: 5 additions & 5 deletions rigs/yaesu/ft3000.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ int ft3000_set_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t option)
ENTERFUNC;
switch (ant)
{
case 3:
cmd = "EX0320"; // TRX ANT3
break;
case 4:
case 1:
cmd = "EX0321"; // R3/1 ANT1/ANT3
break;
case 5:
case 2:
cmd = "EX0322"; // RE/2 ANT2/ANT3
break;
case 3:
cmd = "EX0320"; // TRX ANT3
break;
default:
rig_debug(RIG_DEBUG_ERR, "%s: expected 3,4,5 got %d\n", __func__, ant);
RETURNFUNC(-RIG_EINVAL);
Expand Down
4 changes: 4 additions & 0 deletions rigs/yaesu/newcat.c
Original file line number Diff line number Diff line change
Expand Up @@ -3343,6 +3343,8 @@ int newcat_get_ant(RIG *rig, vfo_t vfo, ant_t dummy, value_t *option,

ENTERFUNC;

option->i = 0; // default to no options

if (!newcat_valid_command(rig, command))
{
RETURNFUNC(-RIG_ENAVAIL);
Expand Down Expand Up @@ -3399,6 +3401,8 @@ int newcat_get_ant(RIG *rig, vfo_t vfo, ant_t dummy, value_t *option,
RETURNFUNC(-RIG_EPROTO);
}

*ant_tx = * ant_rx = *ant_curr;

RETURNFUNC(RIG_OK);
}

Expand Down
2 changes: 1 addition & 1 deletion rigs/yaesu/newcat.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
typedef char ncboolean;

/* shared function version */
#define NEWCAT_VER "20210208"
#define NEWCAT_VER "20210213"

/* Hopefully large enough for future use, 128 chars plus '\0' */
#define NEWCAT_DATA_LEN 129
Expand Down

0 comments on commit 5964e1d

Please sign in to comment.