- all RAN code, CI code, configuration files, dockerfiles, in CSSL v1.0
- all deployment code (openshift, charts, ancillary files like shell
scripts), in MIT
- documentation in CC-BY-4.0
- exceptions might apply and are listed in NOTICE
- there is a new LICENSES folder with all licenses
- CONTRIBUTIONS.md has been updated accordingly
For automated changes based on OAI PL v1.1:
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.{c,h,cpp}
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.ts
perl -i~ -0pe 's/<!--.*Licensed to the OpenAirInterface.*openairinterface.org\n.*-->/<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->/s' **/*.xml
The rest (cmake, files with missing license, cmake) manually.
60 lines
1.4 KiB
C++
60 lines
1.4 KiB
C++
/*
|
|
* SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
|
*/
|
|
|
|
/*!
|
|
* \brief openair mobility visualisor
|
|
*/
|
|
|
|
#include "mywindow.h"
|
|
#include <stdlib.h>
|
|
#include <sys/stat.h>
|
|
#include "communicationthread.h"
|
|
|
|
|
|
//pid_t simulator_pid;
|
|
int pfd[2];
|
|
struct Geo geo[NUMBER_OF_eNB_MAX+NUMBER_OF_UE_MAX];
|
|
int x_area, y_area, z_area;
|
|
int nb_frames;
|
|
int nb_enb;
|
|
int nb_ue;
|
|
int node_number;
|
|
char frame_format[10];
|
|
int tdd_configuration;
|
|
extern int nb_antennas_rx;
|
|
|
|
CommunicationThread* communication_thread;
|
|
|
|
void init_parameters(int frames, int num_enb, int num_ue, float x, float y, float z, int nb_antenna, char* frame_config, int tdd_config){
|
|
x_area = (x == 0) ? 1 : (int) x;
|
|
y_area = (y == 0) ? 1 : (int) y;
|
|
z_area = (z == 0) ? 1 : (int) z;
|
|
nb_enb = num_enb;
|
|
nb_ue = num_ue;
|
|
node_number = nb_enb + nb_ue;
|
|
nb_frames = frames;
|
|
nb_antennas_rx = nb_antenna;
|
|
strcpy(&frame_format[0], frame_config);
|
|
tdd_configuration= tdd_config;
|
|
}
|
|
|
|
int main(int argc, char *argv[]) {
|
|
|
|
if (argc <= 1)
|
|
init_parameters(100,1, 5, 5000.0,5000.0,1000.0, 4,"TDD", 3);
|
|
else {
|
|
init_parameters(atoi(argv[2]), atoi(argv[3]), atoi(argv[4]), atof(argv[5]),atof(argv[6]),atof(argv[7]),atoi(argv[8]), argv[9], atoi(argv[10]));
|
|
pfd[0]= atoi(argv[1]);
|
|
}
|
|
QApplication app(argc, argv);
|
|
|
|
MyWindow window;
|
|
window.move(*(new QPoint(150,100)));
|
|
window.show();
|
|
|
|
int end_value = app.exec();
|
|
|
|
return end_value;
|
|
}
|