Proxim RangeLAN2 7920 Manuel d'utilisateur Page 87

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 103
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 86
72
//TABS SUBROUTINE
mainPanel.add(tabs, BorderLayout.CENTER);
tabs.addTab("Manual Control", main);
// tabs.addTab("Control", new JTextArea());
tabs.addTab("Robot Location", autonomous);
tabs.addTab("Status", new JScrollPane(list));
setContentPane(mainPanel);
pack();
}
/************** PATTERN 1 (SOME RANDOM TEST PATTERN ) ***************************/
/* This function sends the commands to move through pattern1 */
public void doPattern1()
{
leftMotor.setValue(FORWARD);
rightMotor.setValue(FORWARD);
try {
// 1000 milliseconds == one second
Thread.sleep(3000);
} catch (InterruptedException e){}
leftMotor.setValue(FORWARD);
rightMotor.setValue(REVERSE);
try {
Thread.sleep(3000);
} catch (InterruptedException e){}
leftMotor.setValue(STOP);
rightMotor.setValue(FORWARD);
try {
Thread.sleep(3000);
} catch (InterruptedException e){}
leftMotor.setValue(REVERSE);
rightMotor.setValue(STOP);
try {
Thread.sleep(3000);
} catch (InterruptedException e){}
leftMotor.setValue(FORWARD);
rightMotor.setValue(FORWARD);
try {
Thread.sleep(3000);
Vue de la page 86
1 2 ... 82 83 84 85 86 87 88 89 90 91 92 ... 102 103

Commentaires sur ces manuels

Pas de commentaire