Skip to content

Support I2C devices with a vector event data (in v1 ideally as already supported in v2) #797

@tyeth

Description

@tyeth

Is your feature request related to a problem? Please describe.
V1 of WipperSnapper has no support for the vector sensor types in Adafruit Sensor, although the event type is in theory part of the spec. This means the following cannot be supported currently:

    wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_ACCELEROMETER = 1,
    wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_MAGNETIC_FIELD = 2,
    wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_ORIENTATION = 3,
    wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_GYROSCOPE = 4,

Describe the solution you'd like
Add vector support to the protobuf

Describe alternatives you've considered
The current offering is to mash the data together to a single value with no direction.

Additional context
This affects a bunch of components that could otherwise be added, but to be fair within a matter of a few months v2 should be ready to support those components, and already includes vectors.

Maybe I should try adding the blocked components to v2, to ensure the protobuf suites our needs, as offline-mode is using it as a testbed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions