libximc  2.14.27
Data Fields
joystick_settings_t Struct Reference

Joystick settings. More...

Data Fields

unsigned int JoyLowEnd
 Joystick lower end position.
unsigned int JoyCenter
 Joystick center position.
unsigned int JoyHighEnd
 Joystick upper end position.
unsigned int ExpFactor
 Exponential nonlinearity factor.
unsigned int DeadZone
 Joystick dead zone.
unsigned int JoyFlags
 Joystick flags.

Detailed Description

Joystick settings.

This structure contains joystick parameters. If joystick position falls outside the DeadZone limits, a movement begins. Speed is defined by the joystick position in the range of the DeadZone limit to the maximum deviation. Joystick positions inside the DeadZone limits correspond to zero speed (a soft stop of the motion), and positions beyond the Low and High limits correspond to MaxSpeed[i] or -MaxSpeed[i] (see command SCTL), where i = 0 by default and can be changed with left/right buttons (see command SCTL). If the next speed in the list is zero (both integer and microstep parts), the button press is ignored. The first speed in the list shouldn't be zero.

The relationship between the deviation and the rate is exponential, which allows for high mobility and accuracy without speed mode switching.

See Also
set_joystick_settings
get_joystick_settings
get_joystick_settings, set_joystick_settings

Field Documentation

unsigned int DeadZone

Joystick dead zone.

unsigned int ExpFactor

Exponential nonlinearity factor.

unsigned int JoyCenter

Joystick center position.

Range: 0..10000.

unsigned int JoyFlags
unsigned int JoyHighEnd

Joystick upper end position.

Range: 0..10000.

unsigned int JoyLowEnd

Joystick lower end position.

Range: 0..10000.