メインコンテンツ

このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。

モデル化

ハードウェア接続用のモデルの準備と 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 SimulatorLogitech F310 または Xbox コントローラーを使用した VEX ゲームパッドのシミュレーション値の取得
Gear TransmissionSet a scalar value (1 to 4) based on input values
Latch入力信号の変化に基づいて論理値をラッチ

トピック

注目の例