https://github.com/nakkaya/ferret-teensy-flight-sim
https://github.com/nakkaya/ferret-teensy-flight-sim
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nakkaya/ferret-teensy-flight-sim
- Owner: nakkaya
- Created: 2018-06-29T11:08:15.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-29T11:08:32.000Z (almost 7 years ago)
- Last Synced: 2025-01-23T09:42:54.594Z (5 months ago)
- Language: Clojure
- Size: 0 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ferret-teensy-flight-sim
===============Ferret wrapper for Teensy flight sim controls.
#### Usage
Follow installation instructions in https://www.pjrc.com/teensy/td_flightsim.html
#### API
(require '[ferret-teensy-flight-sim.core :as xp])
;; Update
(xp/update);; Read
(def latitude (xp/float-ref "sim/flightmodel/position/latitude"))
(def longitude (xp/float-ref "sim/flightmodel/position/longitude"))(defn loc [] (list (latitude) (longitude)))
;; Write
(def roll! (xp/float-ref "sim/cockpit2/controls/yoke_roll_ratio"))
(roll! 1)