https://github.com/josepedrodias/fpv
KISS FPV simulation
https://github.com/josepedrodias/fpv
fpv javascript simulation webgl
Last synced: 8 months ago
JSON representation
KISS FPV simulation
- Host: GitHub
- URL: https://github.com/josepedrodias/fpv
- Owner: JosePedroDias
- License: mpl-2.0
- Created: 2024-11-24T17:03:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-24T04:49:38.000Z (over 1 year ago)
- Last Synced: 2025-08-23T06:40:48.615Z (10 months ago)
- Topics: fpv, javascript, simulation, webgl
- Language: JavaScript
- Homepage: https://josepedrodias.github.io/fpv/
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fpv
## TD;DR
Trying to come up with the simplest FPV simulation possible.
- gets inputs from radio controller via USB using the gamepad API
- uses threejs to display the points of view of the drone and an external cam
- multiple camera layouts
- everything's editable! physics, bindings, maps, etc.
## how to run
`npx http-server -c-1 .`
visit http://localhost:8080
## supported inputs
edit `main.mjs` to change these:
- lite ratio 3 bindings
- keyboard bindings: wasd/arrow keys for throttle/yaw pitch/roll
- camera layouts:
- 1 split
- 2 fpv
- 3 stationary
- 4 fpv with stationary pip
## 3D
- https://threejs.org/docs/index.html#manual/en/
- https://threejs.org/examples/
## TODO
- support abstract 3d drone rendering (better than a cube)
- support 3d model backed drone rendering (easy, just need to create it)
- easily define drone specs and expo config etc.
- load a level via 3d model (easy, model and export from blender...)
- collision detection
- sound?