• Keine Ergebnisse gefunden

task main() task = Aufgabe, main = Haupt… {

N/A
N/A
Protected

Academic year: 2021

Aktie "task main() task = Aufgabe, main = Haupt… {"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

1

Basis-Workshop

Befehle in NXC (Not eXactly C)

task main() task = Aufgabe, main = Haupt…

{

hier – innerhalb der Klammern –

stehen alle Befehle des Gesamtprogramms

}

Steuern der Motoren des Roboters:

OnFwd(OUT_BC,75); Forward = vorwärts OnBwd(OUT_BC,60); Backward = rückwärts Wait(2000); warte (2000 Millisek.) Off(OUT_BC); schalte Motoren aus

repeat(4) wiederhole (4mal) {

hier – innerhalb der Klammern–

stehen nur die Befehle, die man während des Gesamtprogramms wiederholen möchte

}

(2)

2

Basis-Workshop

Befehle in NXC (Not eXactly C)

Ansprechen der Sensoren des Roboters:

SetSensorTouch(IN_1);

until(SensorTouch(IN_1) == 1);

SetSensorSound(IN_2);

until(SensorSound(IN_2) > 50);

SetSensorLight(IN_3);

until(SensorLight(IN_3) < 35);

SetSensorUS(IN_4);

until(SensorUS(IN_4) >10);

Die Zahlen/Zeichen in ROT sind nur Beispielwerte

und können individuell angepasst werden.

größer als: >

kleiner als: <

Referenzen

ÄHNLICHE DOKUMENTE

Handin Please submit this homework until Thursday, November 08, either via email to Philipp Schuster (philipp.schuster@uni-tuebingen.de) before 12:00, or on paper at the beginning

As the prolongation of the RT to the auditory task due to the low-volume condition was very large, I also expected that it would aid the participants with recognizing the order of

As demonstrated, incentive contracts are tailored to the agent’s task-specific abilities and, particularly, depend on three factors: (i) the inefficiency of effort distortion as

Так , в работе (Gillman, Harris, Matyas (2002)) авторы утверждают , что для стран OECD положительное влияние снижения инфляции на

The demands that the functional task environ- ment makes on human cognitive, perceptual, and action operations causes these operations to adapt to each other and to

global). Single stimuli contain no distractor level at all. neutral stimuli have a distractor level that is meaningless with respect to the judgments. For congru- ent stimuli,

Even if the Iranian government rejects this step, more US personnel should be assigned to overcoming logistical hurdles so that more Iranians can come to the United States

Six are his direct appointees to the Expediency Council—a body that is supposed to mediate disputes between government branches—and include Ali Akbar Velayati, a former