Skip to content

Commit

Permalink
Change all icom rigs to watts for RIG_LEVEL_RFPOWER_METER_WATTS
Browse files Browse the repository at this point in the history
Divide by 100 for old power call
  • Loading branch information
mdblack98 committed Feb 12, 2021
1 parent 0335498 commit 660fd94
Show file tree
Hide file tree
Showing 13 changed files with 190 additions and 57 deletions.
17 changes: 14 additions & 3 deletions rigs/icom/ic7000.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,24 @@
{ 120, 1.0f } \
} }

#define IC7000_RFPOWER_METER_CAL { 3, \
#define IC7000_RFPOWER_METER_CAL { 13, \
{ \
{ 0, 0.0f }, \
{ 143, 0.5f }, \
{ 213, 1.0f } \
{ 21, 5.0f }, \
{ 43, 10.0f }, \
{ 65, 15.0f }, \
{ 83, 20.0f }, \
{ 95, 25.0f }, \
{ 105, 30.0f }, \
{ 114, 35.0f }, \
{ 124, 40.0f }, \
{ 143, 50.0f }, \
{ 183, 75.0f }, \
{ 213, 100.0f }, \
{ 255, 120.0f } \
} }


#define IC7000_COMP_METER_CAL { 3, \
{ \
{ 0, 0.0f }, \
Expand Down
17 changes: 14 additions & 3 deletions rigs/icom/ic7100.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,24 @@ struct cmdparams ic7100_extcmds[] =
{ 120, 1.0f } \
} }

#define IC7100_RFPOWER_METER_CAL { 3, \
#define IC7100_RFPOWER_METER_CAL { 13, \
{ \
{ 0, 0.0f }, \
{ 143, 0.5f }, \
{ 213, 1.0f } \
{ 21, 5.0f }, \
{ 43, 10.0f }, \
{ 65, 15.0f }, \
{ 83, 20.0f }, \
{ 95, 25.0f }, \
{ 105, 30.0f }, \
{ 114, 35.0f }, \
{ 124, 40.0f }, \
{ 143, 50.0f }, \
{ 183, 75.0f }, \
{ 213, 100.0f }, \
{ 255, 120.0f } \
} }


#define IC7100_COMP_METER_CAL { 3, \
{ \
{ 0, 0.0f }, \
Expand Down
17 changes: 14 additions & 3 deletions rigs/icom/ic7200.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,24 @@
{ 120, 1.0f } \
} }

#define IC7200_RFPOWER_METER_CAL { 3, \
#define IC7200_RFPOWER_METER_CAL { 13, \
{ \
{ 0, 0.0f }, \
{ 143, 0.5f }, \
{ 213, 1.0f } \
{ 21, 5.0f }, \
{ 43, 10.0f }, \
{ 65, 15.0f }, \
{ 83, 20.0f }, \
{ 95, 25.0f }, \
{ 105, 30.0f }, \
{ 114, 35.0f }, \
{ 124, 40.0f }, \
{ 143, 50.0f }, \
{ 183, 75.0f }, \
{ 213, 100.0f }, \
{ 255, 120.0f } \
} }


int ic7200_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val);
int ic7200_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);

Expand Down
36 changes: 28 additions & 8 deletions rigs/icom/ic7300.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,21 @@ static int ic7300_get_parm(RIG *rig, setting_t parm, value_t *val);
{ 120, 1.0f } \
} }

#define IC7300_RFPOWER_METER_CAL { 3, \
#define IC7300_RFPOWER_METER_CAL { 13, \
{ \
{ 0, 0.0f }, \
{ 143, 0.5f }, \
{ 213, 1.0f } \
{ 21, 5.0f }, \
{ 43, 10.0f }, \
{ 65, 15.0f }, \
{ 83, 20.0f }, \
{ 95, 25.0f }, \
{ 105, 30.0f }, \
{ 114, 35.0f }, \
{ 124, 40.0f }, \
{ 143, 50.0f }, \
{ 183, 75.0f }, \
{ 213, 100.0f }, \
{ 255, 120.0f } \
} }

#define IC7300_COMP_METER_CAL { 3, \
Expand Down Expand Up @@ -166,11 +176,21 @@ static int ic7300_get_parm(RIG *rig, setting_t parm, value_t *val);
{ 120, 1.0f } \
} }

#define IC9700_RFPOWER_METER_CAL { 3, \
#define IC9700_RFPOWER_METER_CAL { 13, \
{ \
{ 0, 0.0f }, \
{ 143, 0.5f }, \
{ 213, 1.0f } \
{ 21, 5.0f }, \
{ 43, 10.0f }, \
{ 65, 15.0f }, \
{ 83, 20.0f }, \
{ 95, 25.0f }, \
{ 105, 30.0f }, \
{ 114, 35.0f }, \
{ 124, 40.0f }, \
{ 143, 50.0f }, \
{ 183, 75.0f }, \
{ 213, 100.0f }, \
{ 255, 120.0f } \
} }

#define IC9700_COMP_METER_CAL { 3, \
Expand Down Expand Up @@ -281,7 +301,7 @@ const struct rig_caps ic7300_caps =
RIG_MODEL(RIG_MODEL_IC7300),
.model_name = "IC-7300",
.mfg_name = "Icom",
.version = BACKEND_VER ".2",
.version = BACKEND_VER ".3",
.copyright = "LGPL",
.status = RIG_STATUS_STABLE,
.rig_type = RIG_TYPE_TRANSCEIVER,
Expand Down Expand Up @@ -454,7 +474,7 @@ const struct rig_caps ic9700_caps =
RIG_MODEL(RIG_MODEL_IC9700),
.model_name = "IC-9700",
.mfg_name = "Icom",
.version = BACKEND_VER ".1",
.version = BACKEND_VER ".2",
.copyright = "LGPL",
.status = RIG_STATUS_STABLE,
.rig_type = RIG_TYPE_TRANSCEIVER,
Expand Down
17 changes: 14 additions & 3 deletions rigs/icom/ic7410.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,24 @@
{ 120, 1.0f } \
} }

#define IC7410_RFPOWER_METER_CAL { 3, \
#define IC7410_RFPOWER_METER_CAL { 13, \
{ \
{ 0, 0.0f }, \
{ 143, 0.5f }, \
{ 213, 1.0f } \
{ 21, 5.0f }, \
{ 43, 10.0f }, \
{ 65, 15.0f }, \
{ 83, 20.0f }, \
{ 95, 25.0f }, \
{ 105, 30.0f }, \
{ 114, 35.0f }, \
{ 124, 40.0f }, \
{ 143, 50.0f }, \
{ 183, 75.0f }, \
{ 213, 100.0f }, \
{ 255, 120.0f } \
} }


struct cmdparams ic7410_extcmds[] =
{
{ {.s = RIG_LEVEL_VOXDELAY}, CMD_PARAM_TYPE_LEVEL, C_CTL_MEM, S_MEM_PARM, SC_MOD_RW, 1, {0x75 }, CMD_DAT_INT, 1 },
Expand Down
17 changes: 14 additions & 3 deletions rigs/icom/ic756.c
Original file line number Diff line number Diff line change
Expand Up @@ -943,13 +943,24 @@ static const struct icom_priv_caps ic756pro3_priv_caps =
{ 120, 1.0f } \
} }

#define IC756PROIII_RFPOWER_METER_CAL { 3, \
#define IC756PROIII_RFPOWER_METER_CAL { 13, \
{ \
{ 0, 0.0f }, \
{ 143, 0.5f }, \
{ 213, 1.0f } \
{ 21, 5.0f }, \
{ 43, 10.0f }, \
{ 65, 15.0f }, \
{ 83, 20.0f }, \
{ 95, 25.0f }, \
{ 105, 30.0f }, \
{ 114, 35.0f }, \
{ 124, 40.0f }, \
{ 143, 50.0f }, \
{ 183, 75.0f }, \
{ 213, 100.0f }, \
{ 255, 120.0f } \
} }


#define IC756PROIII_COMP_METER_CAL { 3, \
{ \
{ 0, 0.0f }, \
Expand Down
17 changes: 14 additions & 3 deletions rigs/icom/ic7600.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,24 @@
{ 120, 1.0f } \
} }

#define IC7600_RFPOWER_METER_CAL { 3, \
#define IC7600_RFPOWER_METER_CAL { 13, \
{ \
{ 0, 0.0f }, \
{ 143, 0.5f }, \
{ 213, 1.0f } \
{ 21, 5.0f }, \
{ 43, 10.0f }, \
{ 65, 15.0f }, \
{ 83, 20.0f }, \
{ 95, 25.0f }, \
{ 105, 30.0f }, \
{ 114, 35.0f }, \
{ 124, 40.0f }, \
{ 143, 50.0f }, \
{ 183, 75.0f }, \
{ 213, 100.0f }, \
{ 255, 120.0f } \
} }


#define IC7600_COMP_METER_CAL { 3, \
{ \
{ 0, 0.0f }, \
Expand Down
17 changes: 14 additions & 3 deletions rigs/icom/ic7610.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,24 @@
{ 120, 1.0f } \
} }

#define IC7610_RFPOWER_METER_CAL { 3, \
#define IC7610_RFPOWER_METER_CAL { 13, \
{ \
{ 0, 0.0f }, \
{ 143, 0.5f }, \
{ 212, 1.0f } \
{ 21, 5.0f }, \
{ 43, 10.0f }, \
{ 65, 15.0f }, \
{ 83, 20.0f }, \
{ 95, 25.0f }, \
{ 105, 30.0f }, \
{ 114, 35.0f }, \
{ 124, 40.0f }, \
{ 143, 50.0f }, \
{ 183, 75.0f }, \
{ 213, 100.0f }, \
{ 255, 120.0f } \
} }


#define IC7610_COMP_METER_CAL { 3, \
{ \
{ 0, 0.0f }, \
Expand Down
17 changes: 14 additions & 3 deletions rigs/icom/ic7700.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,24 @@
{ 120, 1.0f } \
} }

#define IC7700_RFPOWER_METER_CAL { 3, \
#define IC7700_RFPOWER_METER_CAL { 13, \
{ \
{ 0, 0.0f }, \
{ 143, 0.5f }, \
{ 213, 1.0f } \
{ 21, 5.0f }, \
{ 43, 10.0f }, \
{ 65, 15.0f }, \
{ 83, 20.0f }, \
{ 95, 25.0f }, \
{ 105, 30.0f }, \
{ 114, 35.0f }, \
{ 124, 40.0f }, \
{ 143, 50.0f }, \
{ 183, 75.0f }, \
{ 213, 100.0f }, \
{ 255, 120.0f } \
} }


#define IC7700_COMP_METER_CAL { 3, \
{ \
{ 0, 0.0f }, \
Expand Down
17 changes: 14 additions & 3 deletions rigs/icom/ic7800.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,24 @@
{ 120, 1.0f } \
} }

#define IC7800_RFPOWER_METER_CAL { 3, \
#define IC7800_RFPOWER_METER_CAL { 13, \
{ \
{ 0, 0.0f }, \
{ 143, 0.5f }, \
{ 213, 1.0f } \
{ 21, 5.0f }, \
{ 43, 10.0f }, \
{ 65, 15.0f }, \
{ 83, 20.0f }, \
{ 95, 25.0f }, \
{ 105, 30.0f }, \
{ 114, 35.0f }, \
{ 124, 40.0f }, \
{ 143, 50.0f }, \
{ 183, 75.0f }, \
{ 213, 100.0f }, \
{ 255, 120.0f } \
} }


#define IC7800_COMP_METER_CAL { 3, \
{ \
{ 0, 0.0f }, \
Expand Down
17 changes: 14 additions & 3 deletions rigs/icom/ic785x.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,24 @@
{ 120, 1.0f } \
} }

#define IC785x_RFPOWER_METER_CAL { 3, \
#define IC785x_RFPOWER_METER_CAL { 13, \
{ \
{ 0, 0.0f }, \
{ 143, 0.5f }, \
{ 213, 1.0f } \
{ 21, 5.0f }, \
{ 43, 10.0f }, \
{ 65, 15.0f }, \
{ 83, 20.0f }, \
{ 95, 25.0f }, \
{ 105, 30.0f }, \
{ 114, 35.0f }, \
{ 124, 40.0f }, \
{ 143, 50.0f }, \
{ 183, 75.0f }, \
{ 213, 100.0f }, \
{ 255, 120.0f } \
} }


#define IC785x_COMP_METER_CAL { 3, \
{ \
{ 0, 0.0f }, \
Expand Down
Loading

0 comments on commit 660fd94

Please sign in to comment.