주요 콘텐츠

이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

모델링

하드웨어 연결을 위한 모델 준비, VEX® EDR V5 Robot Brain을 지원하기 위한 블록 추가

하드웨어 연결을 위한 Simulink® 모델을 준비하고, 하드웨어 프로토콜 지원을 위한 블록을 추가하고, 다양한 응용 사례를 다루는 예제를 참조합니다.

블록

모두 확장

DC MotorRepresent connected DC motor and set motor speed
Digital OutputSet logical value to the 3-wire port on VEX EDR V5 Robot Brain
Servo MotorRepresent connected servo motor and set angular position value
Smart Motor WriteRepresent connected V5 Smart Motor and set its velocity and position
Differential DriveSet up differential drive and control robot pose (R2021a 이후)
Gamepad ButtonRepresent one of the 12 buttons on VEX V5 Controller gamepad and read the logical value of the button
Gamepad JoystickRepresent one of the control axis on an x-y analog joystick on VEX V5 Controller gamepad and read the values
Competition SwitchRead the switch positions of VEXnet Competition Switch or field controller
Analog InputRead analog values from the 3-wire port on VEX EDR V5 Robot Brain
Digital InputRead logical values from the 3-wire port on VEX EDR V5 Robot Brain
Smart Motor ReadRepresent connected V5 Smart Motor and read encoder values
Vision SensorRepresent connected V5 Vision Sensor and read coordinates of color blobs (objects)
Optical Shaft EncoderRepresent connected Optical Shaft Encoder and read relative position of motor shaft in ticks
Ultrasonic SensorRepresent connected Ultrasonic sensor and measure distance to object
GyroscopeRepresent connected gyroscope and measure yaw angle
Inertial SensorMeasure orientation, acceleration, and angular rate (R2021a 이후)
Distance SensorRead distance, velocity, and relative size of obstacle (R2021b 이후)
Optical SensorRead proximity, color, and brightness (R2021b 이후)
Rotation SensorRead shaft position and velocity (R2021b 이후)
Rotation SensorRead shaft position and velocity (R2021b 이후)
GPS SensorRead position and orientation (R2022b 이후)
Arcade ModuleGet the right and left wheel speed values of a robot in an Arcade configuration
Field SimulatorView the simulation speed values of a two-wheel robot
Gamepad SimulatorGet the simulation value of a VEX gamepad using Logitech F310 or XBOX Controller
Gear TransmissionSet a scalar value (1 to 4) based on input values
LatchLatch the logical value based on the change in the input signal

도움말 항목

추천 예제