int main()
{

	/*Counter counter;

	std::vector<std::thread> threads;

	for (int i = 0; i < 5; ++i) {
		threads.push_back(std::thread([&counter]() {
			for (int i = 0; i < 100; ++i) {
				if (i % 2) {
					float angs[5] = { 123.1 + i, 123.2 + i , 123.3 + i, 124.4 + i , 123.5 +i   };
					counter.setAngles(angs);
				}
				else {
					counter.printAngles();
				}
				counter.increment();
			}
		}));
	}

	for (auto& thread : threads) {
		thread.join();
	}

	std::cout << counter.value << std::endl;
	*/
	std::vector<float> angs;

	angs.push_back(123);
	angs.push_back(456);
	angs.push_back(789);
	angs.push_back(987);
	angs.push_back(654);


	Communication* c = Communication::getInstance();
	c->setAngles(angs);

	Simulation::getInstance()->startSend();

	while (1) {
		angs[2] += 1;
		c->setAngles(angs);
		std::cout << "szia" << std::endl;
		Sleep(500);
	}
	
	system("pause");

	return 0;
	
}