void debugMain() { while (true) { if (handleAISwitch(vexRT[Btn8L], vexRT[Btn8R], vexRT[Btn8U], vexRT[Btn8D])) { startBot(vexRT[Btn8L], vexRT[Btn8R], vexRT[Btn8U], vexRT[Btn8D]); break; // bot has been "started" (competition mode), and now the execution loop takes place in startBot() } else // pre-competition or testing mode: two stick layout is enabled { if (handleLayoutSwitch(0, vexRT[Btn7U])) // combination to switch to a layout, if necessary // HACK: 0 is instead of a 7D return, so that we never go into one-stick { wait1Msec(20); // short reset time } if (isOneStickLayout == true) { oneStickLayout(); } else { twoStickLayout(); } } } }
void JVBotManager::startBots() { if(m_queueStartBots.size() > 0) { QJsonObject joConfigBot = m_queueStartBots.dequeue(); startBot(joConfigBot); } }