-
Notifications
You must be signed in to change notification settings - Fork 0
/
transmitter.h
35 lines (27 loc) · 836 Bytes
/
transmitter.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
#ifndef TRANSMITTER_H
#define TRANSMITTER_H
#include <QGraphicsEllipseItem>
#include <QVector2D>
#include <QPen>
#include <QBrush>
#include "parameters.h"
class Transmitter : public QVector2D
{
public:
int getPower_dBm() const;
qreal getPower() const;
qreal getG_TXP_TX() const;
void setPower_dBm(int power_dBm);
QPointF getCoordinates() const;
void changeCoordinates(QPointF new_coordinates);
int selector_index;
QString name;
Transmitter(qreal x, qreal y, int selector_index, QString name);
QGraphicsEllipseItem* graphics = new QGraphicsEllipseItem(); // TX's QGraphicsItem
qreal power = P_TX; // ! in Watts, 20dBm = 0.1W
qreal power_dBm = P_TX_dBm; // 20dBm
qreal gain = G_TX; // 1.64 or 1.7 ?
private:
void setGraphicsRect(qreal x,qreal y);
};
#endif // TRANSMITTER_H