https://github.com/richtr/artificial-horizon
A JavaScript implementation of an Artifical Horizon Instrument
https://github.com/richtr/artificial-horizon
Last synced: 3 months ago
JSON representation
A JavaScript implementation of an Artifical Horizon Instrument
- Host: GitHub
- URL: https://github.com/richtr/artificial-horizon
- Owner: richtr
- Created: 2012-02-16T21:05:20.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2016-02-10T12:05:00.000Z (over 9 years ago)
- Last Synced: 2025-03-19T08:52:49.237Z (3 months ago)
- Language: JavaScript
- Homepage: https://richtr.github.io/Artificial-Horizon/
- Size: 2.14 MB
- Stars: 12
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Artificial Horizon JS
====================An artificial horizon instrument implementation in pure Javascript using W3C Accelerometer and Orientation events
#### Usage ####
Simply clone this repo as follows:
git clone [email protected]:richtr/Artificial-Horizon.git
Load 'index.html' and enjoy!
An online demo is available [here](https://richtr.github.io/Artificial-Horizon/).
#### Screenshots ####
With the screen in a vertical plane perpendicular to the ground:
With the screen in a vertical plane, rolling the device 45 degrees to the left and pitching the device 20 degrees to the north:
With the screen in a vertical plane perpendicular to the ground with the top of the screen pointing to the right (a 90 degree roll):
With the screen in a vertical plane perpendicular to the ground with the top of the screen pointing to the left, rolling 40 degrees to the right and pitching 20 degrees to the north:
With the screen in a vertical plane perpendicular to the ground, rolling 70 degrees to the right and pitch 70 degrees to the north:
![]()