libximc  2.13.1
Data Fields
control_settings_t Struct Reference

Control settings. More...

Data Fields

unsigned int MaxSpeed [10]
 Array of speeds (full step) using with joystick and button control.
unsigned int uMaxSpeed [10]
 Array of speeds (in microsteps) using with joystick and button control.
unsigned int Timeout [9]
 timeout[i] is time in ms, after that max_speed[i+1] is applying.
unsigned int MaxClickTime
 Maximum click time (in ms).
unsigned int Flags
 Control flags.
int DeltaPosition
 Shift (delta) of position (full step)
int uDeltaPosition
 Fractional part of the shift in micro steps.

Detailed Description

Control settings.

This structure contains control parameters. When choosing CTL_MODE=1 switches motor control with the joystick. In this mode, the joystick to the maximum engine tends Move at MaxSpeed [i], where i=0 if the previous use This mode is not selected another i. Buttons switch the room rate i. When CTL_MODE=2 is switched on motor control using the Left / right. When you click on the button motor starts to move in the appropriate direction at a speed MaxSpeed [0], at the end of time Timeout[i] motor move at a speed MaxSpeed [i+1]. at Transition from MaxSpeed [i] on MaxSpeed [i+1] to acceleration, as usual. The figure above shows the sensitivity of the joystick feature on its position.

See Also
set_control_settings
get_control_settings
get_control_settings, set_control_settings

Field Documentation

unsigned int Flags
unsigned int MaxClickTime

Maximum click time (in ms).

Prior to the expiration of this time the first speed isn't enabled.

unsigned int MaxSpeed[10]

Array of speeds (full step) using with joystick and button control.

Range: 0..100000.

unsigned int Timeout[9]

timeout[i] is time in ms, after that max_speed[i+1] is applying.

It is using with buttons control only.

int uDeltaPosition

Fractional part of the shift in micro steps.

Is only used with stepper motor. Microstep size and the range of valid values for this field depend on selected step division mode (see MicrostepMode field in engine_settings).

unsigned int uMaxSpeed[10]

Array of speeds (in microsteps) using with joystick and button control.

Microstep size and the range of valid values for this field depend on selected step division mode (see MicrostepMode field in engine_settings).