добавил программу для воздуха, но она пока не работает

This commit is contained in:
2025-11-13 19:13:53 +03:00
parent 6ef59210bb
commit af351135a2
4 changed files with 300 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ bool JoystickReader::readData(std::vector<uint16_t>& data) {
for (auto& i: data) {
if (i < 900) i = 900;
if (i > 1100) i = 1100;
if (i > 2100) i = 2100;
}
std::this_thread::sleep_for(std::chrono::milliseconds(updateIntervalMs));

View File

@@ -9,7 +9,7 @@
int main(int argc, char* argv[]) {
// Парсим аргументы командной строки для частоты
int frequency = 50;
int frequency = 5;
const char* sendAddress;
if (argc == 1) {
sendAddress = "127.0.0.1";