libximc: control_settings_calb_t Struct Reference

libximc 3.1.1

Data Fields
control_settings_calb_t Struct Reference

User unit control settings. More...

## Data Fields
float | MaxSpeed [10]
| Array of speeds used with the joystick and the button control. More...
unsigned int | Timeout [9]
| Timeout[i] is timeout in ms. More...
unsigned int | MaxClickTime
| Maximum click time (in ms). More...
unsigned int | Flags
| Control flags. More...
float | DeltaPosition
| Position shift (delta)

## Detailed Description

User unit control settings.

This structure contains control parameters.

In case of CTL_MODE=1, the joystick motor control is enabled. In this mode, while the joystick is maximally displaced, the engine tends to move at MaxSpeed[i]. i=0 if another value hasn't been set at the previous usage. To change the speed index "i", use the buttons.

In case of CTL_MODE=2, the motor is controlled by the left/right buttons. When you click on the button, the motor starts moving in the appropriate direction at a speed MaxSpeed[0]. After Timeout[i], the motor moves at speed MaxSpeed[i+1]. At the transition between MaxSpeed[i] and MaxSpeed[i+1] the motor just accelerates/decelerates as usual.

See also
  set_control_settings_calb
  get_control_settings_calb
  get_control_settings, set_control_settings

## Field Documentation

## ◆ Flags

unsigned int Flags

Control flags.

## ◆ MaxClickTime

unsigned int MaxClickTime

Maximum click time (in ms).

Until the expiration of this time, the first speed isn't applied.

## ◆ MaxSpeed

float MaxSpeed[10]

Array of speeds used with the joystick and the button control.

## ◆ Timeout

unsigned int Timeout[9]

Timeout[i] is timeout in ms.

After that, max_speed[i+1] is applied. It's used with the button control only.