|
libximc
2.14.28
|
User unit control settings. More...
Data Fields | |
| float | MaxSpeed [10] |
| Array of speeds used with the joystick and the button control. | |
| unsigned int | Timeout [9] |
| Timeout[i] is timeout in ms. | |
| unsigned int | MaxClickTime |
| Maximum click time (in ms). | |
| unsigned int | Flags |
| Control flags. | |
| float | DeltaPosition |
| Position shift (delta) | |
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.
| unsigned int Flags |
| unsigned int MaxClickTime |
Maximum click time (in ms).
Until the expiration of this time, the first speed isn't applied.
| float MaxSpeed[10] |
Array of speeds used with the joystick and the button control.
| 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.
1.8.2