Κινητήρας 393#
Εισαγωγή#
Ένας Κινητήρας 393 είναι ένας κινητήρας συνεχούς ρεύματος που ελέγχεται μέσω ενός Ελεγκτή Κινητήρα VEX 29 (MC29). Ο MC29 μετατρέπει το σήμα Διαμόρφωσης Πλάτους Παλμού (PWM) από μια θύρα Brain 3 καλωδίων σε μεταβλητή τάση που οδηγεί τον Κινητήρα 393.

This page uses motor_393 as the example Motor 393 name. Replace it with your own configured name as needed.
Παρακάτω είναι μια λίστα με τις διαθέσιμες μεθόδους:
spin– Spins a Motor 393 forward or reverse until stopped.stop– Stops a Motor 393 immediately.set_velocity– Tells a Motor 393 how fast to spin.set_reversed– Sets a Motor 393 to have its direction be reversed.
Κατασκευαστής – Χειροκίνητη αρχικοποίηση ενός Ελεγκτή Κινητήρα 29.
Motor29– Creates a Motor Controller 29.
γνέθω#
spin rotates a connected Motor 393 in a specified direction using the current motor velocity.
Usage:
motor_393.spin(direction, velocity, units)
Παράμετροι |
Περιγραφή |
|---|---|
|
The direction in which to spin the Motor 393:
|
|
Optional. The velocity to spin with from 0% to 100% when using |
|
Optional. The velocity unit:
|
στάση#
stop stops the connected Motor 393 immediately.
Usage:
motor_393.stop()
Παράμετροι |
Περιγραφή |
|---|---|
Αυτή η μέθοδος δεν έχει παραμέτρους. |
set_velocity#
set_velocity tells a Motor 393 how fast to spin. A higher percentage makes the Motor 393 spin faster and a lower percentage makes the Motor 393 spin slower.
Κάθε έργο ξεκινά με κάθε Κινητήρα 393 να περιστρέφεται με ταχύτητα 50% από προεπιλογή.
Usage:
motor_393.set_velocity(value, units)
Παράμετρος |
Περιγραφή |
|---|---|
|
The velocity to spin with from 0% to 100% when using |
|
Optional. The velocity unit:
|
set_reversed#
set_reversed sets the Motor 393 to be reversed so that the FORWARD direction will spin clockwise. This method works the same as setting the reverse parameter to True when constructing a Motor29.
Usage:
motor_393.set_reversed(value)
Παράμετροι |
Περιγραφή |
|---|---|
|
Whether the Motor 393’s direction is reversed:
|
Κατασκευαστές#
Constructors are used to manually create Motor29 objects, which are necessary for configuring a Motor Controller 29/Motor 393 outside of VEXcode.
Motor29#
Motor29 creates a Motor Controller 29.
Usage:
Motor29(port, reverse)
Παράμετρος |
Περιγραφή |
|---|---|
|
The 3-Wire Port that the Motor Controller 29 is connected to:
|
|
Optional. Sets whether the Motor 393’s spin should be reversed.
|
# Create a Motor Controller 29 in Port A
motor_393 = Motor29(brain.three_wire_port.a)