Vex CORTEX Instrukcja Obsługi Strona 73

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 166
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 72
Reference
Project Lead The Way
©
and Carnegie Mellon Robotics Academy
©
/ For use with VEX
®
Robotics Systems
Pseudo Code & Flow Charts 2
Pseudocode & Flow Charts
Flow Charts are a visual representation of program ow. A ow chart normally uses a
combination of blocks and arrows to represent actions and sequence. Blocks typically
represent actions. The order in which actions occur is shown using arrows that point from
statement to statement. Sometimes a block will have multiple arrows coming out of it,
representing a step where a decision must be made about which path to follow.
Decision
Action
Start and End symbols are represented as rounded rectangles,
usually containing the word “Start” or “End”, but can be more
specic such as “Power Robot Off” or “Stop All Motors”.
Actions are represented as rectangles and act as basic
commands. Examples: “wait 1 second”; “increment LineCount
by 1”; or “motors full ahead”.
Decision blocks are represented as diamonds. These typically
contain Yes/No questions. Decision blocks have two or
more arrows coming out of them, representing the different
paths that can be followed, depending on the outcome of the
decision. The arrows should always be labeled accordingly.
To the right is the ow chart of a program
which instructs a robot to run the right motor
forward as long as its touch sensor is not
pressed. When the touch sensor is pressed
the motor stops and the program ends.
To read the ow chart:
Start at the “Start” block, and follow its
arrow down to the “Decision” block.
The decision block checks the status of
the touch sensor against two possible
outcomes: the touch sensor is either
pressed or not pressed.
If the touch sensor is not pressed, the
program follows the “No” arrow to the
action block on the right, which tells the
right motor to run forward. The arrow
leading out of that block points back
up and around, and ends back at the
Decision block. This forms a loop!
The loop may end up repeating many
times, as long as the Touch Sensor
remains unpressed.
If the touch sensor is pressed, the
program follows the “Yes” arrow and
stops the motors, then ends the program.
Start
Is the Touch
Sensor
pressed?
End
Run the Right
Motor
Stop
Motor
No
Start/Stop
Go to Reference Links
Przeglądanie stron 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 ... 165 166

Komentarze do niniejszej Instrukcji

Brak uwag

Elenco Urządzenia pomiarowe podręczniki użytkownika

Zaczynanie od D

Kliknij na poniższy alfabet, aby przejść do pełnej listy modeli zaczynających się od tej litery

Modele Rodzaj dokumentu
DataCom Tester Kit
Instrukcja Użytkownika   Elenco DataCom Tester Kit User Manual, 28 strony
Deluxe Battery Eliminator
Instrukcja Użytkownika   Elenco Deluxe Battery Eliminator User Manual, 2 strony
Deluxe Digital / Analog Trainer with Tools
Instrukcja Użytkownika   Elenco Deluxe Digital / Analog Trainer with Tools User Manual, 16 strony
Deluxe Digital / Analog Trainer with Tools Kit Ver
Instrukcja Użytkownika   Elenco Deluxe Digital / Analog Trainer with Tools Kit Version User Manual, 52 strony
Deluxe Solar Educational Kit
Instrukcja Użytkownika   Elenco Deluxe Solar Educational Kit User Manual, 15 strony
Digital / Analog Trainer
Instrukcja Użytkownika   Elenco Digital / Analog Trainer User Manual, 12 strony
Digital / Analog Trainer in Case
Instrukcja Użytkownika   Elenco Digital / Analog Trainer in Case User Manual, 16 strony
Digital / Analog Trainer Kit Version
Instrukcja Użytkownika   Elenco Digital / Analog Trainer Kit Version User Manual, 52 strony
Digital Bench Multimeter
Instrukcja Użytkownika   Elenco Digital Bench Multimeter User Manual, 26 strony
Digital Mulitmeter Kit
Instrukcja Użytkownika   Elenco Digital Mulitmeter Kit User Manual, 20 strony
Digital Multimeter
Instrukcja Użytkownika   Elenco Digital Multimeter User Manual, 18 strony
Diode/Transistor Tester
Instrukcja Użytkownika   Elenco Diode/Transistor Tester User Manual, 8 strony
Diode/Transistor Tester Kit
Instrukcja Użytkownika   Elenco Diode/Transistor Tester Kit User Manual, 12 strony
Dual 2A LCD
Instrukcja Użytkownika   Elenco Dual 2A LCD User Manual, 8 strony