Skip to content

Move PhidgetSpatial per-tool parameter settings to the tool elements #109

@Sunderlandkyl

Description

@Sunderlandkyl

Move attributes such as TiltSensorWestAxisIndex, AhrsAlgorithm, AhrsAlgorithmGain, etc. in the tool elements.

To manage deprecation: PLUS_ENABLE_DEPRECATED_API controls supporting of deprecated config file or algo interface. Remove in next major version (or after 6 months). Add date of deprecation. Log warning when deprecated API is used and explain how to migrate to the supported version.

<Device
Type=”PhidgetSpatial”
Id=”TrackerDevice”
AcquisitionRate=”125”
LocalTimeOffsetSec=”0.0”>

<DataSources>
<DataSource Type=”Tool” Id=”Accelerometer” PortName=”Accelerometer” BufferSize=”2500” AveragedItemsForFiltering=”20”/>
<DataSource Type=”Tool” Id=”Gyroscope” PortName=”Gyroscope” BufferSize=”2500” AveragedItemsForFiltering=”20”/>
<DataSource Type=”Tool” Id=”Magnetometer” PortName=”Magnetometer” BufferSize=”2500” AveragedItemsForFiltering=”20”/>
<DataSource Type=”Tool” Id=”TiltSensor” PortName=”TiltSensor” BufferSize=”2500” AveragedItemsForFiltering=”20” TiltSensorWestAxisIndex=”1” AhrsAlgorithm=”NONE/MADGWICK_IMU/MAHONY_IMU” AhrsAlgorithmGain=”1.5” />
<DataSource Type=”Tool” Id=”OrientationSensor” PortName=”OrientationSensor” BufferSize=”2500” AveragedItemsForFiltering=”20” AhrsAlgorithm=”MADGWICK_MARG” AhrsAlgorithmGain=”1.5” />
</DataSources>
<OutputChannels>
<OutputChannel Id=”TrackerStream” >
<DataSource Id=”Accelerometer”/>
<DataSource Id=”Gyroscope”/>
<DataSource Id=”Magnetometer”/>
<DataSource Id=”TiltSensor”/>
<DataSource Id=”OrientationSensor”/>
</OutputChannel>
</OutputChannels>
</Device>

Migrated from https://app.assembla.com/spaces/plus/tickets/802/details

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions