Feelix
  • Feelix Documentation
  • Getting started
    • Designing Effects
      • Torque Effects
      • Position Effects
      • Velocity Effects
      • Dependent/Independent Effects
    • Effect Library
    • Creating Collections
  • Create and edit
    • Edit tools
    • Effect Settings
    • Layers
    • Grid
    • Export Effects
    • TensorFlow
  • Uploading files
    • Setting up STM32
    • Connect and Upload
    • Hardware Settings
    • Troubleshooting Feelix
  • Hardware support
    • Hardware
    • PCB pinout
    • Setup
    • Dependencies
    • FeelixEffect Docs
      • Setup
      • Motor control
      • Import Effects
        • Import Haptic Effect
        • Import Velocity Effect
        • Functions and Parameters
      • I2C communication
  • Downloads
    • Feelix Design Tool
    • Feelix Arduino Library
    • 3D Models
    • Old Library Releases
Powered by GitBook
On this page
  • Haptic Effects
  • Velocity Effects Functions
  • Effect Parameters

Was this helpful?

  1. Hardware support
  2. FeelixEffect Docs
  3. Import Effects

Functions and Parameters

PreviousImport Velocity EffectNextI2C communication

Last updated 5 days ago

Was this helpful?

This code works with the

Haptic Effects


Velocity Effects Functions

void FeelixEffect::play(bool play, long time = millis());

/* start effect */
effect_name.play(true, feelix.current_time);

/* stop effect */
effect_name.play(false);
void FeelixEffect::enable()

/* enable effect */
effect_name.enable();
void FeelixEffect::disable()

/* disable effect */
effect_name.disable();

Effect Parameters

/* variable to store number of data points */
int data_size;
bool infinite;

/* Haptic Effect
 * true: repeat every rotation
 * false: repeat once
 */
 
/* Velocity Effect
 * true: loop effect
 * false: play effect once
 */
/* scale effect in x and y: value between 0.0 and 1.0 */
effect.scale.x = 0.8;
effect.scale.y = 0.5;
/* update effect position on y-axis: value between -1.0 and 1.0 */
effect.position.y = -0.5
Control_type control_type;

float angle;

Effect_type effect_type; 

dir direction;

float quality;     

bool PLAYING;

bool enabled; 
Feelix Effect Arduino Library