void MainWindow::createActions() { QString s; OEG::Qt::MainWindow::createActions(); a_add_word = new QAction(_("&Add word ..."), this); a_add_translation = new QAction(_("Add t&ranslation ..."), this); a_translate = new QAction(_("&Translate"), this); a_toggle_direction = new QAction(_("Toggle &direction"), this); s = _("Add one or more words to the dictionary."); a_add_word->setToolTip(s); a_add_word->setStatusTip(s); s = _("Add a new word combination to the dictionary."); a_add_translation->setToolTip(s); a_add_translation->setStatusTip(s); s = _("Translate input text."); a_translate->setToolTip(s); a_translate->setStatusTip(s); s = _("Toggle translation direction."); a_toggle_direction->setToolTip(s); a_toggle_direction->setStatusTip(s); connect(a_add_word, SIGNAL(triggered()), this, SLOT(addWord())); connect(a_add_translation, SIGNAL(triggered()), this, SLOT(addTranslation())); connect(a_translate, SIGNAL(triggered()), this, SLOT(translate())); connect(a_toggle_direction, SIGNAL(triggered()), this, SLOT(toggleDirection())); }
//The main task will run the robot initialization and then will wait for the signal from FCS //to begin and enter the continuous loop that recieves joystick values and executes functions //with this data. task main() { //initializeRobot(); //Sets servos into waitForStart(); // Waits for start of tele-op phase int sloMoCounter = 0; int directionCounter = 0; while ( true ) { //Updates joystick variables with data from joystick station getJoystickSettings( joystick ); moveRobot(); sloMoCounter = toggleSloMo(sloMoCounter); directionCounter = toggleDirection(directionCounter); //runConveyer(); //moveLift(); //moveServo(); } }