AccelerationResponse¶
- class sofia_redux.scan.channels.mode.acceleration_response.AccelerationResponse(channel_group=None, gain_provider=None, name=None)[source]¶
Bases:
MotionResponse
Creates a position response mode based on acceleration.
A mode is an object that is applied to a given channel group, defining what constitutes its “gain” and how to operate thereon. This is also dependent on a gain provider.
The acceleration response is designed to extract a signal from an integration based on some function of acceleration, defined in a specific direction. The direction operator is an instance of the
MotionFlags
class.- Parameters:
- channel_groupChannelGroup, optional
The channel group owned by the mode.
- gain_providerstr or GainProvider, optional
If a string is provided a
FieldGainProvider
will be set to operate on the given field of the channel group.- namestr, optional
The name of the mode. If not provided, will be determined from the channel group name (if available). To set the direction, the name should be of the form <name>-<direction> or <name>:<direction>.
Methods Summary
get_signal_from_direction
(integration, direction)Return a signal object from an integration and direction.
Methods Documentation