Proxim RangeLAN2 7920 Instrukcja Użytkownika Strona 87

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 103
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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);
Przeglądanie stron 86
1 2 ... 82 83 84 85 86 87 88 89 90 91 92 ... 102 103

Komentarze do niniejszej Instrukcji

Brak uwag