Giter Site home page Giter Site logo

alti's Introduction

Alti

A manual altimeter for use with i.e. water bottle or micro rockets. It asks the user for the distance between the launch point and the observation point. It uses the phone's gyroscope to give an angle. Using basic trigonometry, the height of the rocket can be calculated.

height = tan(angle) * distance

Is the basic formula used for guessing the height the rocket went.

Live version

other included

There's also a simple CLI that will make the building of a manual altimeter easier. It's called Height, and you execute it by (after installing the JDK) executing javac Height.java; java Height. This will output something like this:

angle (°) height at 50.0m (m) distance for 10.0m (m)
5.0 4.0 114.0
10.0 8.0 56.0
15.0 13.0 37.0
20.0 18.0 27.0
25.0 23.0 21.0
30.0 28.0 17.0
35.0 35.0 14.0
40.0 41.0 11.0
45.0 50.0 10.0
50.0 59.0 8.0
55.0 71.0 7.0
60.0 86.0 5.0
65.0 107.0 4.0
70.0 137.0 3.0
75.0 186.0 2.0
80.0 283.0 1.0
85.0 571.0 0.0

The column is the angle, second the height at that angle at 50m distance, the third is the distance you need for that angle to be 10m

A way to make the output more readable is to save the output in a markdown file and processing or previewing it.

java Height > output.md

License

Creative Commons Licence

Alti is licensed under a Creative Commons Attribution 4.0 International License. No warranty whatsoever.

alti's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

alti's Issues

Chrome installed app icon

It shows as the chrome icon and the title is chrome, but in multitasking as a tab in chrome it shows as anti with the icon.

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.