T-Series/Commands/Set Axis Inversion

From ZaberWiki
Jump to: navigation, search

Set Axis Inversion - Cmd 27

Warning: This is an "include" page. As such, its contents may be included in multiple other pages. To see a list of all pages that include this page, click on "What links here" in the bottom left navbar. If you make changes to this page, be sure that your changes are appropriate to all pages on which this content will be included. You are also encouraged to review our Zaber Wiki Editing Guidelines. This header will not be included in other pages.

Instruction Name Set Axis Inversion
Applies to T-JOY
Firmware Version 5.04 and up
Command Number 27
Command Type Setting
Command Data Invert Status
Reply Data Invert Status
Safe to retry? No
Returns Current Position? No
Persistence Non-Volatile
Summary Inverts the active joystick axis.

Sometimes it is desirable to invert one or more axes to create a more intuitive user interface. The Set Axis Inversion (#27) command allows the user to set the invert status of the active axis. Use Invert Status = 1 to set the current axis to non-inverted, use Invert Status = -1 to set the current axis to inverted. Use Invert Status = 0 to toggle between invert and non-invert (the Invert Status of the reply will still be either 1 or -1).

See the Set Active Axis (#25) instruction for information on how to select an axis. Each axis can be inverted independently of the other two axis. See command #26 for an example of how to invert a particular axis.

Here are the default directions for each axis (not inverted):

  • On axis 1, left is negative and right is positive.
  • On axis 2, down is negative and up is positive.
  • On axis 3, counter-clockwise is negative and clockwise is positive.

What constitutes positive or negative motion depends on the device; see the user’s manual for the device in question. The default axis inversion setting for all joystick axes is non-inverted.

Personal tools
Zaber Website