Is there a way to use the point-of-view (POV) switch on my joystick with the Joystick Input block in the Aerospace Blockset 2.2 (R2006b)?

2 次查看(过去 30 天)

采纳的回答

MathWorks Support Team
This bug has been fixed in Release 2007a (R2007a). For previous product releases, read below for any possible workarounds:
To use the POV switch of a joystick with the Pilot Joystick block in Aerospace Blockset:
1. Double-click the Pilot Joystick block.
2. Select the 'Output configuration' popup list. This option enables you to output all signals from the joystick.
3. From the list, select 'AllOutputs' and click OK. The block outputs reflect three ports. Port 3 is for POV.
To implement actions based on signals, you can do one of the following:
  • With the POV signal, use Enabled or Triggered subsystems to perform actions based on the signal value.
  • Use If-Else blocks to implement actions based on a signal.
See the following documentation links for further help:
Creating Conditionally Executed Subsystems
Modeling Control Flow Logic

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Unit Conversions 的更多信息

产品


版本

R2006b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by