Ενέργειες#

Εισαγωγή#

Το ρομπότ VEX 123 μπορεί να εκφράζει διαφορετικά συναισθήματα εκτελώντας μια ακολουθία συμπεριφορών οδήγησης, στροφής και ήχου.

Παρακάτω είναι μια λίστα με όλες τις μεθόδους:

Πράξεις — Εκφράστε τα συναισθήματά σας.

  • act — Acts out a specified emotion.

Ενέργειες#

act#

act makes the robot act out an emotion by performing a sequence of drive, turn, and sound behaviors.

Usage:
robot.act(emotion)

Παράμετρος

Περιγραφή

emotion

The emotion to act out:

  • CRAZY — The robot makes wide circles in both directions while playing a swirling sound effect.
  • HAPPY — The robot spins quickly while playing a giggle sound effect.
  • SAD — The robot reverses, slowly turns left and right, and returns to its original position while playing descending notes.

# Act happy
robot.act(HAPPY)