可以在不使用GPS的情况下计算移动方向吗?不使用GPS的方向角
我的应用程序已用于汽车,此应用程序通过BT连接到另一台设备。这个装置告诉我1x 5秒的坐标+方向角度。
/*direction angle = */ location.bearingTo(location);
但是1x/5sec秒是不够的。所以我想计算下面的坐标:D有可能做到这一点吗?
我:
1. sec - speed, coordinates, angle
2. sec - speed, ?, ?
3. sec - speed, ?, ?
4. sec - speed, ?, ?
5. sec - speed, coordinates, angle
坐标不能被更频繁地发送使得硬件...也是我不想使用全球定位系统,导致电池...
我希望它会通过使用一些传感器在Android ...也许...(加速度计或磁传感器等)
感谢您的答案。
编辑:
我有2个设备
1. android phone with my app (app which i programm) - mobile in my pocket
2. other device writen in ASM by another programmer we can call him "parek" - fixed (static) device - build-in car.
我的应用程序连接到 “parek” 通过BT。 “parek”有GPS模块,他可以告诉我方向角度的坐标&(但只有1x持续5秒,不再)。
“parek”可以给我1秒的车速1秒(这不是问题),但坐标&方向角他不行,导致硬件老化。
但我的应用程序需要每隔1秒的坐标,我不能&我不想在我的手机中使用GPS(在我的口袋里,在车里)。
我知道你在一辆车上有一台BT设备。但是,接收信息的其他设备是移动还是静止?你知道这是协调吗?如果它在移动,你知道它的方向和速度吗? –
我更新了我的问题。 –