Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Match virtual sensors ranges and value types to actual device #342

Closed
@profbrady

Description

@profbrady

The CPX and CPB light sensors have a range of 0-320 but the simulator's range is 0-255. The CPX and CPB accelerometer values are floats so that you can actually read +/-9.8 for an axis when stationary and the axis is vertical. Off the top of my head I don't recall what the temperature sensor range is on the physical device, but the value from it is a float whereas the simulator uses an integer.

Something I would like to see regarding the accelerometer is the ability to change the rotation about an axis and have the associated acceleration values change in proportion to the amount of rotation. Rotation values of 0, 0, 0 would define an orientation of the board as if it were lying flat on a table with the buttons facing up. Or as seen on the screen with the +z axis facing the user. In this initial position the x and y drag bars would be set to zero but the z would be -9.8. This ability could be optional and turned on/off with a checkbox.

The slide switch also seems to be backwards from this Adafruit guide.
https://learn.adafruit.com/circuitpython-made-easy-on-circuit-playground-express/slide-switch

Brian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions