Announcement

Collapse
No announcement yet.

Multi-Keycode : Single Output

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multi-Keycode : Single Output



    Celestia is a programme for viewing astronomical objects. It has Pitch/Roll/Yaw controls which would map well to a Wii Controller. However these movements are controlled via 6 numericals: Pitch (Up - 2 / Down - 8), Yaw (Left - 4, Right - 6) and Roll (Left - 7, Right - 9).


    In OSCulator I can only assign a single Value to a Keycode, e.g. /wii/1/accel/pry/pitch --> Key 84 (KeyPad 2).


    Currently doing, half the controls (Up/Left/Left) are sent out from one Wii controller and the other (Down/Right/Right) from a second - which isn't so great.


    Is it possible to assign half the pitch range to one Keycode value and the other to a second Keycode value? That way it would be possible to control Celestia quite easily.


  • #2


    Hi Andy,


    There is a simple way to do that:

    Select for example the "pitch" argument, and do "Edit->Split".

    It will duplicate the message in two parts, and set the proper scaling values so each halves are mutually exclusive.


    Please note that currently, the way attitude angles are calculated (from the readings given by the accelerometers), you can not have a very precise yaw when the Wiimote is standing flat. Thus, I would recommend to start experimenting with pitch and roll in a first place, then add yaw if it works well.


    Best,

    Cam

    Comment


    • #3


      Great Cam, thanks for the info!

      Comment

      Working...
      X