Gyroscope isn't supported
Bug #1398806 reported by
Michael Sheldon
This bug affects 10 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtubuntu-sensors |
In Progress
|
Medium
|
Gerry Boland |
Bug Description
The current back-end being used for QtSensors doesn't support the Gyroscope sensor found in most modern phones (including krillin and mako). Gyroscope readings are needed for most virtual reality and augmented reality applications, as well as being useful for games using device movement for input.
Steps to reproduce:
1) Run following QML:
import QtSensors 5.0
import Ubuntu.Components 1.1
MainView {
Gyroscope {
active: true
}
}
}
Expected result:
Gyroscope readings should be output on the console
Actual result:
No output.
Related branches
lp:~gerboland/qtubuntu-sensors/add-gyro-magnet-sensors
Approved
for merging
into
lp:qtubuntu-sensors
- Lorn Potter (community): Approve
-
Diff: 761 lines (+655/-4)12 files modifieddata/Sensors.conf (+2/-0)
plugins/sensors/CMakeLists.txt (+8/-0)
plugins/sensors/core_gyroscope.cpp (+70/-0)
plugins/sensors/core_gyroscope.h (+49/-0)
plugins/sensors/core_magnetometer.cpp (+70/-0)
plugins/sensors/core_magnetometer.h (+49/-0)
plugins/sensors/core_sensor_plugins.cpp (+18/-0)
plugins/sensors/core_sensor_plugins.h (+0/-4)
plugins/sensors/core_shared_gyroscope.cpp (+131/-0)
plugins/sensors/core_shared_gyroscope.h (+64/-0)
plugins/sensors/core_shared_magnetometer.cpp (+130/-0)
plugins/sensors/core_shared_magnetometer.h (+64/-0)
description: | updated |
Changed in qtubuntu-sensors: | |
assignee: | nobody → Gerry Boland (gerboland) |
importance: | Undecided → Medium |
status: | New → In Progress |
To post a comment you must log in.
It might be worth looking at switching the backend to sensorfw as this has much better support than the generic backend (which only supports accelerometers and nothing else), Mer already has a hybris based sensorfw implementation: https:/ /github. com/mer- hybris/ sensorfw