Inputs and Functions: Difference between revisions

From STorM32-BGC Wiki V1
Jump to navigation Jump to search
No edit summary
No edit summary
Line 15: Line 15:
Depending on the input and function, the hardware is configured accordingly. Possible conflicts are resolved by configuration settings in the {{GUI|Setup}} tab. For instance, pin RC-0 may either be used as PWM input, Spektrum input, or S-bus input. This is determined by the {{PARAMNAME|Virtual Channel Configuration}} setting. If it is configured as a Spektrum input, when the (converted) Sepktrum input data is available via the {{PARAMVALUE|Virtual-1}} to {{PARAMVALUE|Virtual-16}} input channels. The {{PARAMVALUE|Rc-0}} input channel in contrast yields then the value zero.  
Depending on the input and function, the hardware is configured accordingly. Possible conflicts are resolved by configuration settings in the {{GUI|Setup}} tab. For instance, pin RC-0 may either be used as PWM input, Spektrum input, or S-bus input. This is determined by the {{PARAMNAME|Virtual Channel Configuration}} setting. If it is configured as a Spektrum input, when the (converted) Sepktrum input data is available via the {{PARAMVALUE|Virtual-1}} to {{PARAMVALUE|Virtual-16}} input channels. The {{PARAMVALUE|Rc-0}} input channel in contrast yields then the value zero.  


If it happens that a certain hardware resource is not used by any function, when it is disabled hardware-wise. This is for safety reasons, to prevent that spurios signals can produce false behavior.
If it happens that a certain hardware resource is not used by any function, when it is disabled hardware-wise. This is for safety reasons, to prevent that spurios signals enter the system and produce false behavior.


The available inputs, the conversion to the internal value range of [-500,+500], and how these values are used by the various functions are summarized in this diagram.
The available inputs, the conversion to the internal value range of [-500,+500], and how these values are used by the various functions are summarized in this diagram.


[[File:Stom32-bgc-input-channels-v067e.jpg|1024px]]
[[File:Stom32-bgc-input-channels-v067e.jpg|1024px]]

Revision as of 20:26, 22 March 2015

The concept of input channels and function of the STorM32 controller is discussed here.

Input Channel:

The STorM32 controller supports a rich set of different signal sources, such as PWM, sum-PPM, Spektrum or S-Bus, analog signals, and buttons and combination of buttons. Any possible input data stream is called an input channel (in firmware v0.67e there are 38 input channels). The value range is -500 ... +500, which implies that the original data of the input source is converted such as to fit into this [-500,+500] range. By default every input channels yields a value of 0, unless it is explicitly activated by attaching it to any of the functions in the GUI.

Function:

A function is anything, which can receive an input value and acts upon it. The STorM32 controller provides a rich set of them, such as the possibility to control the camera orientation, the camera shutter, or a PWM output signal, to name some (in firmware v0.67e there are 12 functions).

How it works:

Any of the input channels can be attached to any of the functions. One input can hence also drive two or more functions. This provides a great deal of possibilities, but some combinations don't make any sense and some can even lead to malfunction. It is the user's responsibility to not do nonsense.

Depending on the input and function, the hardware is configured accordingly. Possible conflicts are resolved by configuration settings in the [Setup] tab. For instance, pin RC-0 may either be used as PWM input, Spektrum input, or S-bus input. This is determined by the Virtual Channel Configuration setting. If it is configured as a Spektrum input, when the (converted) Sepktrum input data is available via the "Virtual-1" to "Virtual-16" input channels. The "Rc-0" input channel in contrast yields then the value zero.

If it happens that a certain hardware resource is not used by any function, when it is disabled hardware-wise. This is for safety reasons, to prevent that spurios signals enter the system and produce false behavior.

The available inputs, the conversion to the internal value range of [-500,+500], and how these values are used by the various functions are summarized in this diagram.

Stom32-bgc-input-channels-v067e.jpg