GithubHelp home page GithubHelp logo

Comments (4)

bob-chen avatar bob-chen commented on July 23, 2024

你说的是『JavaScript 陀螺仪检测设备方向(重力感应)』这个文章吗,里面主要介绍的是 deviceorientation 事件,这个事件主要是用来监听并接收设备方向变化信息,和加速度关系不大。

和加速度关系比较大的是另一个事件,devicemotion,主要是用来监听设备在位置和方向上的加速度变化信息,那个事件里面获取加速器对象就可以直接取得 x,y,z 的加速度了。

@ancientry

from demos.

ancientry avatar ancientry commented on July 23, 2024

是的呢,现在主要是如何计算出,设备在不同方向,获取向前的加速度,用于车辆上面,主要检测车辆的急加速,急减速呢,您这边有合适的吗?谢谢您

from demos.

ancientry avatar ancientry commented on July 23, 2024

您这个有经验,可以有偿帮忙的呢,感谢

from demos.

bob-chen avatar bob-chen commented on July 23, 2024

@ancientry 加速度的变化,你可以参考一下摇一摇的例子,https://cloud.tencent.com/developer/article/1009321

from demos.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.