Giter VIP home page Giter VIP logo

haptiq's People

Contributors

sic2 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

haptiq's Issues

Methods inheritance

When we try to inherit a HapticShape (for instance, "HapticCircle") some methods are private (for instance "HapticCircle.dstFromCenter()"), that prevents their use for inherit classes.
One solution might be to change their protection level to "protected" instead of "private"

That might be apply to all leaf classes of the API (behaviours', hapticshapes', etc.).

Rods height by a percentage value

For the moment, we can:

  • set the max value,
  • set the min value,
  • set the current height to the min value,
  • set the current height to the max value,
  • and set the current height to a chosen value.

I think the last one is a problem, we don't know exactly which value to put in there.
We could implement a method based on percentage, for example 30% of the max value.

Something like that:
setHeightByPercentage(uint hPercent){
setHeight( minHeight + ( maxHeight - minHeight ) * hPercent/100 );
}

and privatize the "setHeight" method.

HapticLine

HapticLine should be added to allow lines representation. This would be different from an HapticLink, which shows direction.

Also, code for HapticLine is partially provided in the HapticRectangle class.

Extension:
HapticPolyline

HapticCircle

Description:
Add an haptic circle shape.

Possible problems:
Edges cannot be represented by combinations of actuators

Possible workaround:
Use notification behaviour only for this shape, but change the frequency as the device gets near the edges.

Normalise actuators positions

Description:
In the method playBehaviours in the MHTP class multiple behaviours can be added.
Each behaviour set a particular actuator to a specified position. When summing the behaviours the final position of the actuator can exceed the maximum allowed position.

Solution:
Normalise final position based on the number of behaviours.

LinearBehaviour

Linear behaviour could represent an alternative to PulsationBehaviour, where actuators do not oscillate and rather than changing the frequency, the height is changed.

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.