Support for Vendors
User Configuration
Code examples
Analysing tools
Support for BiDiB
Moving Servos
To allow for an easy setup of typical model railway movements, a servo port may offer different movement types by means of a CONFIGX setting: BIDIB_PCFG_MOVE_TYPE. Different curves (movement over time) may be implemented, these curves then will be scaled according to the current adjustment setting of the servo and the desired moving time.
The curves are scaled in a range from 0.0 to 1.0. There should be some headroom (typically 10%) in scaling to allow for some overshoot in movements (ie useful for mechanical operated signals (seesaw)).
BIDIB_PCFG_MOVE_TYPE ist separated in two nibbles, each nibble defines a movement type. The lower nibble defines the movement, if the start is smaller than target, the upper nibble is used if start is larger than target.
MOVE_TYPE | Movement | Graphic |
---|---|---|
0 Linear | ![]() |
|
1 Smooth | ![]() |
|
2 Seesaw | ![]() |
|
3 Bounce | ![]() |