Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invert Hella cover position values #12

Open
tbarth64 opened this issue Nov 25, 2021 · 2 comments
Open

Invert Hella cover position values #12

tbarth64 opened this issue Nov 25, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@tbarth64
Copy link

Is your feature request related to a problem? Please describe.
It's because HELLA API v3 dose not support switch_drive_direction anymore ...

Describe the solution you'd like.
If possible integrate a config switch to choose an inversion of position values.
Ex input 10 -> pos -> 90

Describe alternatives you've considered.
If config switch is set to yes, then do something like this:
(sorry I'm not a python programmer ;-) )

#!/bin/bash
input=$1

if [ $input -lt 50 ];then
(( pos = (50 - input) * 2 + input ))
else
(( pos = input - (input - 50) * 2))
fi

echo $pos

Regards,
Thomas

@tbarth64 tbarth64 added the enhancement New feature or request label Nov 25, 2021
@muhlba91
Copy link
Owner

sorry for my late response. is this still an issue? do you have a particular example where this is useful?

@tbarth64
Copy link
Author

tbarth64 commented Mar 25, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants