Merge "Default accel Z direction value to +9.8" am: 34557d4596
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2310345 Change-Id: I043ee571f59f40e4726cc8678e35a5775da0d6a9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
72239c642e
3 changed files with 3 additions and 3 deletions
|
@ -223,7 +223,7 @@ void AccelSensor::readEventPayload(EventPayload& payload) {
|
|||
EventPayload::Vec3 vec3 = {
|
||||
.x = 0,
|
||||
.y = 0,
|
||||
.z = -9.8,
|
||||
.z = 9.8,
|
||||
.status = SensorStatus::ACCURACY_HIGH,
|
||||
};
|
||||
payload.set<EventPayload::Tag::vec3>(vec3);
|
||||
|
|
|
@ -218,7 +218,7 @@ AccelSensor::AccelSensor(int32_t sensorHandle, ISensorsEventCallback* callback)
|
|||
void AccelSensor::readEventPayload(EventPayload& payload) {
|
||||
payload.vec3.x = 0;
|
||||
payload.vec3.y = 0;
|
||||
payload.vec3.z = -9.8;
|
||||
payload.vec3.z = 9.8;
|
||||
payload.vec3.status = SensorStatus::ACCURACY_HIGH;
|
||||
}
|
||||
|
||||
|
|
|
@ -237,7 +237,7 @@ std::vector<Event> AccelSensor::readEvents() {
|
|||
event.timestamp = ::android::elapsedRealtimeNano();
|
||||
event.u.vec3.x = 0;
|
||||
event.u.vec3.y = 0;
|
||||
event.u.vec3.z = -9.815;
|
||||
event.u.vec3.z = 9.815;
|
||||
event.u.vec3.status = SensorStatus::ACCURACY_HIGH;
|
||||
events.push_back(event);
|
||||
return events;
|
||||
|
|
Loading…
Reference in a new issue