diff --git a/reports and other files/Deliverables Plan.docx b/reports and other files/Deliverables Plan.docx index dd30a44e5d11d813e10690fcb65ad5535230505f..c7040b0810fcd31a308bed581bf1352e9ba322e9 100644 Binary files a/reports and other files/Deliverables Plan.docx and b/reports and other files/Deliverables Plan.docx differ diff --git a/reports and other files/TestingStrategy.docx b/reports and other files/TestingStrategy.docx index a96d213b04864b8602290b8d524fad572a4a2eee..69aac4b7f03e57487eb6a4886762aa898d82eaf0 100644 Binary files a/reports and other files/TestingStrategy.docx and b/reports and other files/TestingStrategy.docx differ diff --git a/reports and other files/final report/Final Report.docx b/reports and other files/final report/Final Report.docx index 0220e38abbe5c7be3e6e039ffb97cc1c4de1bf49..662afd12d1fbc6c932a5f8baa174f555084a44d9 100644 Binary files a/reports and other files/final report/Final Report.docx and b/reports and other files/final report/Final Report.docx differ diff --git a/sourcefiles/POETSvisualizer.pro.user b/sourcefiles/POETSvisualizer.pro.user index 8801d50e83cfaf20c2161e1b398e4ada07bed7b9..f9885d4b3aafef9f422c839d4c4217c9f0b4e46c 100644 --- a/sourcefiles/POETSvisualizer.pro.user +++ b/sourcefiles/POETSvisualizer.pro.user @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE QtCreatorProject> -<!-- Written by QtCreator 4.13.3, 2021-04-14T23:48:28. --> +<!-- Written by QtCreator 4.13.3, 2021-04-15T23:24:17. --> <qtcreator> <data> <variable>EnvironmentId</variable> diff --git a/sourcefiles/debug/POETSvisualizer.exe b/sourcefiles/debug/POETSvisualizer.exe index 3bf493ba427ba4c0f3317f216a7d390ddeb84984..5f89f128d4a27a25254d1d4a0c3de3416b463dca 100644 Binary files a/sourcefiles/debug/POETSvisualizer.exe and b/sourcefiles/debug/POETSvisualizer.exe differ diff --git a/sourcefiles/debug/sender.o b/sourcefiles/debug/sender.o index ca98f1554c8f5d0186be43af61f3c0b009296c77..d16cd5145d48883ffa4e1de260697fc79f675d71 100644 Binary files a/sourcefiles/debug/sender.o and b/sourcefiles/debug/sender.o differ diff --git a/sourcefiles/sender.cpp b/sourcefiles/sender.cpp index 55a8930acabbc93f9ea3b68d649a1bdad80100f7..df1ab7faef6d8f13eba8b5088143dd276f83ea60 100644 --- a/sourcefiles/sender.cpp +++ b/sourcefiles/sender.cpp @@ -109,22 +109,25 @@ void Sender::dummyPacketsValuesTest() { int currentMboxx; int currentMboxy; -int count = 0; + int count = 0; while (true) { //generate random packet from random location in system count++; if (count*0.00001 >= 360) { count = 0; } + currentBoardX = random(0,boardX); currentBoardY = random(0,boardY); currentMboxx = random(0,mboxX); currentMboxy = random(0,mboxY); + Packet p = Packet(currentBoardX,currentBoardY,currentMboxx,currentMboxy,random(0,cores),random(0,threads),20 + random(0,60),10 + random(0,40),currentBoardY * 1000 * sin(0.00001*count) + 2000,200*pow(currentBoardY,2) +200* pow(currentBoardX,2) );//poll recipients. + //Packet p = Packet(0,0,0,0,random(0,cores),random(0,threads),20 + random(0,60),10 + random(0,40),currentBoardY * 1000 * sin(0.00001*count) + 2000,currentBoardY * 1000 * sin(0.00001*count) + 4000);//poll recipients. //Packet p = Packet(currentBoardX,currentBoardY,currentMboxx,currentMboxy,random(0,cores),random(0,threads),20 + random(0,60),10 + random(0,40),currentBoardY * 1000 * sin(0.00001*count) + 2000,currentBoardY * 1000 * sin(0.00001*count) + 4000);//poll recipients. - if (currentBoardX % 2 == 0 && currentBoardY % 2 == 0) { - Packet p = Packet(currentBoardX,currentBoardY,currentMboxx,currentMboxy,random(0,cores),random(0,threads),20 + random(0,60),10 + random(0,40),currentBoardY * 1000 * sin(0.00001*count) + 2000,currentBoardX * 1000 * sin(0.00001*count) + 4000);//poll recipients. + + // Packet p = Packet(currentBoardX,currentBoardY,currentMboxx,currentMboxy,random(0,cores),random(0,threads),20 + random(0,60),10 + random(0,40),currentBoardY * 1000 * sin(0.00001*count) + 2000,currentBoardX * 1000 * sin(0.00001*count) + 4000);//poll recipients. if (hasSurface) { @@ -141,7 +144,7 @@ int count = 0; } } - } + } } @@ -404,10 +407,10 @@ void Sender::removeChartsPage() { //thread main void Sender::run() { qDebug("running"); - // transmitPacket(); - //dummyPacketsValuesTest(); + transmitPacket(); + // dummyPacketsValuesTest(); //dummyPacketsValuesTest2(); - dummyPackets1(); + //dummyPackets1(); //