Cirque Pinnacle esp32 stuttering mouse movement

hi guys not sure if anyone can help i have a cirque pinnacle trackpad connected to a esp32, but im having problems trying to sort out micro stutting "its set up as a mouse"
iv tired low pass filtering, and other smoothing options but the problem is still there
the problem was there before i added haptic's, i also have it configured as relative mode do i need to add caps or some other hardware to help fix this issue?


// Constants
#define SPI_SPEED               10000000 // 10 MHz
#define HAPTIC_INTENSITY        700 // PWM intensity for general haptic feedback (0-255)
#define HAPTIC_DURATION         5   // Duration of general haptic pulse in milliseconds
#define HAPTIC_INTENSITY_BUTTON 200 // PWM intensity for haptic feedback when button is pressed (0-255)
#define HAPTIC_DURATION_BUTTON   5   // Duration of haptic pulse in milliseconds for button press
#define LED_0                   21
#define LEFT_CLICK_PIN          13
#define RIGHT_CLICK_PIN         12
#define WRITE_MASK              0x80
#define READ_MASK               0xA0
#define SYSCONFIG_1            0x00
#define FEEDCONFIG_1           0x41
#define FEEDCONFIG_2           0x1F
#define Z_IDLE_COUNT            0x05
#define ADC_ATTENUATE_1X       0x00
#define DEFAULT_MOUSE_SENSITIVITY 1.0
#define DEFAULT_POLLING_RATE    100

const int movingAverageWindow = 10; // Increased buffer size for smoother movements
int8_t xBuffer[movingAverageWindow] = {0};
int8_t yBuffer[movingAverageWindow] = {0};
int bufferIndex = 0;

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.