-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtransceiveradjustments.h
61 lines (42 loc) · 1.31 KB
/
transceiveradjustments.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef TRANSCEIVERADJUSTMENTS_H
#define TRANSCEIVERADJUSTMENTS_H
#include <QtGlobal>
#include <QWidget>
#include <math.h>
#include "rigidentities.h"
namespace Ui {
class transceiverAdjustments;
}
class transceiverAdjustments : public QWidget
{
Q_OBJECT
public:
explicit transceiverAdjustments(QWidget *parent = 0);
~transceiverAdjustments();
void setMaxPassband(quint16 maxHzAllowed);
signals:
void setIFShift(unsigned char level);
void setTPBFInner(unsigned char level);
void setTPBFOuter(unsigned char level);
void setPassband(quint16 passbandHz);
public slots:
void setRig(rigCapabilities rig);
void updateIFShift(unsigned char level);
void updateTPBFInner(unsigned char level);
void updateTPBFOuter(unsigned char level);
void updatePassband(quint16 passbandHz);
private slots:
void on_IFShiftSlider_valueChanged(int value);
void on_TPBFInnerSlider_valueChanged(int value);
void on_TPBFOuterSlider_valueChanged(int value);
void on_resetPBTbtn_clicked();
void on_passbandWidthSlider_valueChanged(int value);
private:
Ui::transceiverAdjustments *ui;
rigCapabilities rigCaps;
bool haveRigCaps = false;
int previousIFShift = 128;
float maxHz = 10E3;
quint16 lastKnownPassband = 3500;
};
#endif // TRANSCEIVERADJUSTMENTS_H