diff --git a/reports and other files/Deliverables Plan.docx b/reports and other files/Deliverables Plan.docx index c7040b0810fcd31a308bed581bf1352e9ba322e9..ee4bd2bc533765089526783856b4e36d4395b680 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/final report/Final Report.docx b/reports and other files/final report/Final Report.docx index 662afd12d1fbc6c932a5f8baa174f555084a44d9..d48be9ff94d4e36e4a2f93df76a2a2ae1fb6d7c1 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/reports and other files/final report/~$nal Report.docx b/reports and other files/final report/~$nal Report.docx new file mode 100644 index 0000000000000000000000000000000000000000..33fc4162cbf833031bdebcff6b3a69b6af03f2b2 Binary files /dev/null and b/reports and other files/final report/~$nal Report.docx differ diff --git a/reports and other files/~$stingStrategy.docx b/reports and other files/~$stingStrategy.docx new file mode 100644 index 0000000000000000000000000000000000000000..583ae7a7132115fd68ec788c9b469b1ae2dd4847 Binary files /dev/null and b/reports and other files/~$stingStrategy.docx differ diff --git a/sourcefiles/debug/POETSvisualizer.exe b/sourcefiles/debug/POETSvisualizer.exe index 5f89f128d4a27a25254d1d4a0c3de3416b463dca..e1a818501f8e88dc65ac207d2b4aa970059239d7 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 d16cd5145d48883ffa4e1de260697fc79f675d71..03ae970abc24a10fcfdf62c1c0e602533462b9fc 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 df1ab7faef6d8f13eba8b5088143dd276f83ea60..9b56b7338ba4310adc6c2782e4468de72c562b79 100644 --- a/sourcefiles/sender.cpp +++ b/sourcefiles/sender.cpp @@ -102,7 +102,7 @@ void Sender::dummyPacketsValuesTest() { int mboxX = 3; int mboxY = 3; - int cores = 1; + int cores = 3; int threads = 15; int currentBoardX; int currentBoardY; @@ -122,12 +122,12 @@ void Sender::dummyPacketsValuesTest() { 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(currentBoardX,currentBoardY,currentMboxx,currentMboxy,random(0,cores),random(0,threads),20 + random(0,60),10 + random(0,40), 1000 * sin(0.00001*count) + 4000,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. - // 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),currentBoardX * currentBoardY * 5*sin(0.00001*count) + 10,currentBoardY * 1000 * sin(0.00001*count) + 2000,currentBoardX * 1000 * sin(0.00001*count) + 4000);//poll recipients. if (hasSurface) { @@ -343,14 +343,6 @@ void Sender::transmitPacket() { recipientReceive(p); - - - - - - - - //sleep(0.2); @@ -407,8 +399,8 @@ void Sender::removeChartsPage() { //thread main void Sender::run() { qDebug("running"); - transmitPacket(); - // dummyPacketsValuesTest(); + //transmitPacket(); + dummyPacketsValuesTest(); //dummyPacketsValuesTest2(); //dummyPackets1();