Skip to content

How to move up and down or left and right with sticks incrementally? #11

@dentedghost

Description

@dentedghost

/controller/stick/{stick}/{axis}/{value}

Values that work
0 = Bottom, Left
4095 = Top, Right

Sending Min and Max works, but sending 100, 1000, 2000, etc doesn't impact movement. Are we missing a parameter for up, down, left, and right?

Looking into joycontrol/controller_state.py for down:
def set_down(self):
"""
Sets stick to down position using the calibration data.
"""
if self._calibration is None:
raise ValueError('No calibration data available.')
self._h_stick = self._calibration.h_center
self._v_stick = self._calibration.v_center - self._calibration.v_max_below_center

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions