Code Monkey home page Code Monkey logo

softpotmagic's People

Contributors

dogtopus avatar per1234 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

softpotmagic's Issues

Bad contact causes the position to suddenly jump up

Sometimes tapping and releasing the SoftPot will give weird readings (suddenly jumps to arbitrary numbers, etc.) probably due to lack of debouncing routine (and no ResponsiveAnalogRead does not help in this case because it is too responsive)

Get rid of the arbitrary floating-point requirement

Floating-point arithmetic is not only slow, but also consumes a lot of program spaces on some hardware. Besides that, the code does not use a lot of FP arithmetic at all, so it should be easy to remove the dependency on FP all together.

Clarify what blobThreshold actually does in both documentation and code level

The current implementation of blobThreshold (aka minimum gap between 2 touch points) is somewhat confusing and conterintuitive and needs clarification.

Things to do:

  • Change the name of {get,set}BlobThreshold to things like {get,set}MinimumGapRatio and use a float between 0 to 1 as a way to represent the gap size instead of using the internal relative resistance representation.
    • The code also needs to be refactored so that it calculates the relative resistance from the ratio the user supplies.
  • Add brief explaination in example code and README about what it does and how will it affect the result of sensing.

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.