set_gain_phase();
}
-void update_diversity_gain_coarse(double increment) {
- double g=gain_coarse+increment;
- if(g<-25.0) g=-25.0;
- if(g>25.0) g=25.0;
- gain_coarse=g;
- div_gain=gain_coarse+gain_fine;
- if(gain_coarse_scale!=NULL) {
- gtk_range_set_value(GTK_RANGE(gain_coarse_scale),gain_coarse);
- } else {
- show_diversity_gain();
- }
- set_gain_phase();
-}
-
-void update_diversity_gain_fine(double increment) {
- double g=gain_fine+(increment/100);
- if(g<-2.0) g=-2.0;
- if(g>2.0) g=2.0;
- gain_fine=g;
- div_gain=gain_coarse+gain_fine;
- if(gain_fine_scale!=NULL) {
- gtk_range_set_value(GTK_RANGE(gain_fine_scale),gain_fine);
- } else {
- show_diversity_gain();
- }
- set_gain_phase();
-}
-
void update_diversity_phase(double increment) {
double p=div_phase+increment;
while (p > 180.0) p -= 360.0;
set_gain_phase();
}
-void update_diversity_phase_coarse(double increment) {
- double p=phase_coarse+increment;
- if (p > 180.0) p = 180.0;
- if (p < -180.0) p = -180.0;
- phase_coarse=p;
- if(phase_coarse_scale!=NULL) {
- gtk_range_set_value(GTK_RANGE(phase_coarse_scale),phase_coarse);
- } else {
- show_diversity_phase();
- }
- div_phase=phase_coarse+phase_fine;
- set_gain_phase();
-}
-
-void update_diversity_phase_fine(double increment) {
- double p=phase_fine+(increment/10.0);
- while (p > 5.0) p = 5.0;
- while (p < -5.0) p = -5.0;
- phase_fine=p;
- if(phase_fine_scale!=NULL) {
- gtk_range_set_value(GTK_RANGE(phase_fine_scale),phase_fine);
- } else {
- show_diversity_phase();
- }
- div_phase=phase_coarse+phase_fine;
- set_gain_phase();
-}
-
void diversity_menu(GtkWidget *parent) {
parent_window=parent;
extern void diversity_menu(GtkWidget *parent);
extern void update_diversity_gain(double increment);
-extern void update_diversity_gain_coarse(double increment);
-extern void update_diversity_gain_fine(double increment);
extern void update_diversity_phase(double increment);
-extern void update_diversity_phase_coarse(double increment);
-extern void update_diversity_phase_fine(double increment);
if(controller!=CONTROLLER1) {
setProperty("i2c_device",i2c_device);
- sprintf(value,"%d",i2c_address_1);
+ sprintf(value,"%ud",i2c_address_1);
setProperty("i2c_address_1",value);
for(int i=0;i<16;i++) {
sprintf(name,"i2c_sw[%d]",i);
- sprintf(value,"%d",i2c_sw[i]);
+ sprintf(value,"%ud",i2c_sw[i]);
setProperty(name,value);
}
char sf[32];
int text_location;
double offset;
- int max_power=100;
char *units="W";
double interval=10.0;
cairo_t *cr = cairo_create (meter_surface);
}
switch(pa_power) {
case PA_1W:
- max_power=1000;
units="mW";
interval=100.0;
level=level*1000.0;
break;
case PA_10W:
- max_power=10;
interval=1.0;
break;
case PA_30W:
- max_power=30;
interval=3.0;
break;
case PA_50W:
- max_power=50;
interval=5.0;
break;
case PA_100W:
- max_power=100;
interval=10.0;
break;
case PA_200W:
- max_power=200;
interval=20.0;
break;
case PA_500W:
- max_power=500;
interval=50.0;
break;
}
cairo_set_line_width(cr, 1.0);
cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
- int max_power=100;
char *units="W";
double interval=10.0;
switch(pa_power) {
case PA_1W:
- max_power=1000;
units="mW";
interval=100.0;
break;
case PA_10W:
- max_power=10;
interval=1.0;
break;
case PA_30W:
- max_power=30;
interval=3.0;
break;
case PA_50W:
- max_power=50;
interval=5.0;
break;
case PA_100W:
- max_power=100;
interval=10.0;
break;
case PA_200W:
- max_power=200;
interval=20.0;
break;
case PA_500W:
- max_power=500;
interval=50.0;
break;
}
int rigctlGetFilterLow();
int rigctlGetFilterHigh();
-void rigctlSetFilterLow(int val);
-void rigctlSetFilterHigh(int val);
int new_level;
int active_transmitter = 0;
int rigctl_busy = 0; // Used to tell rigctl_menu that launch has already occured
}
}
-// Changed these two functions to void
-void rigctlSetFilterLow(int val){
-};
-void rigctlSetFilterHigh(int val){
-};
-
void set_freqB(long long new_freqB) {
vfo[VFO_B].frequency = new_freqB;
row++;
col=0;
- int saved_row=row;
-
GtkWidget *panadapter_high_label=gtk_label_new(NULL);
gtk_label_set_markup(GTK_LABEL(panadapter_high_label), "<b>Panadapter High: </b>");
#ifdef GTK316
const char *maxf;
const char *lof;
const char *loerr;
- const char *txlof; // used in temporarily de-activated code
- const char *txloerr; // used in temporarily de-activated code
for(i=BANDS;i<BANDS+XVTRS;i++) {
BAND *xvtr=band_get_band(i);
BANDSTACK *bandstack=xvtr->bandstack;