fake
You can use the fake movement sensor model to test movement sensor code without connecting to any actual hardware.
The fake model supports all movement sensor methods: Accuracy, AngularVelocity, CompassHeading, LinearAcceleration, LinearVelocity, Orientation, Position, Properties, and Readings.
Note that this model does not get any actual readings, so it supports these methods by returning placeholder data.
{
"components": [
{
"name": <sensor_name>,
"model": "fake",
"api": "rdk:component:movement_sensor",
"attributes": {},
"depends_on": []
}
]
}
{
"components": [
{
"name": "myFakeSensor",
"model": "fake",
"api": "rdk:component:movement_sensor"
}
]
}
Was this page helpful?
Glad to hear it! If you have any other feedback please let us know:
We're sorry about that. To help us improve, please tell us what we can do better:
Thank you!