Skip to content

Poor implementation of converting a range of axes to a range of servos #46

@vertigra

Description

@vertigra

in extension:
XpadControl.Interfaces.AdamActionsMethodsDependencies.ToServoRange(this float gamepadRangeValue, int zeroPosition)

  1. Add test
  2. Change implementation to the calculated range
    For example (???):
    zeroPosition = 17
    negativeRange = -100 -17
    negativeRangeValue = negativeRange /zeroPosition

if the value on the axis decreases, the change in the value in this case will be equal to negativeRangeValue

Metadata

Metadata

Assignees

Labels

invalidThis doesn't seem right

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions