V5 Πνευματικά#
Εισαγωγή#
The VEX V5 Brain can control a V5 Pneumatics system using methods from the Pneumatics class. These methods allow the Brain to open or close the system, extending or retracting pneumatic cylinders.
Θα χρειαστεί να κατασκευάσετε την κλάση χειροκίνητα για να λειτουργήσει αυτό.
This page uses v5_pneumatic as the example V5 Pneumatics name. Replace it with your own configured name as needed.
Παρακάτω είναι μια λίστα με τις διαθέσιμες μεθόδους:
Ενέργειες – Έλεγχος πνευματικών κυλίνδρων.
Κατασκευαστές – Χειροκίνητη αρχικοποίηση και διαμόρφωση της πνευματικής ηλεκτρομαγνητικής βαλβίδας V5.
Pneumatics– Creates a V5 Pneumatics Solenoid.
Ενέργειες#
open#
open extends a cylinder.
Χρήση:
v5_pneumatic.open()
Παράμετροι |
Περιγραφή |
|---|---|
Αυτή η μέθοδος δεν έχει παραμέτρους. |
# Extend the first cylinder
v5_pneumatic.open()
# Wait 2 seconds
wait(2, SECONDS)
# Retract the first cylinder
v5_pneumatic.close()
close#
close retracts a cylinder.
Usage:
v5_pneumatic.close()
Παράμετροι |
Περιγραφή |
|---|---|
Αυτή η μέθοδος δεν έχει παραμέτρους. |
# Extend the first cylinder
v5_pneumatic.open()
# Wait 2 seconds
wait(2, SECONDS)
# Retract the first cylinder
v5_pneumatic.close()
Κατασκευαστές#
Constructors are used to manually create Pneumatics objects, which are necessary for configuring a V5 Pneumatic Solenoid.
Pneumatics#
Pneumatics creates a V5 Pneumatics Solenoid.
Usage:
Pneumatics(port)
Παράμετρος |
Περιγραφή |
|---|---|
|
The 3-Wire Port that the V5 Pneumatic Solenoid is connected to:
|
# Create a V5 Pneumatic Solenoid in Port A
v5_pneumatic = Pneumatics(brain.three_wire_port.a)