vsulako / AFFBWheel

Arduino based racing wheel controller with force feedback
MIT License
102 stars 20 forks source link

Auto find range problem #58

Open Ertugrulbabaci opened 8 months ago

Ertugrulbabaci commented 8 months ago

Hello. I added physical limiters in two directions, left and right. I set it to 900 degrees. When I activate it as you say in the codes, it goes first to the left and then to the right. Then, instead of finding the middle point, it starts to turn left forever. There is no midpoint. what is the reason of this?

vsulako commented 8 months ago

I changed code a bit, please update and check if it helps.

Ertugrulbabaci commented 8 months ago

It now finds the midpoint, but there is a left turn of -8 degrees. Can I make it stop at the midpoint? Also, can a button be assigned to operate this system?

Ertugrulbabaci commented 8 months ago

It now finds the midpoint, but there is a left turn of -8 degrees. Can I make it stop at the midpoint? Also, can a button be assigned to operate this system? https://github.com/vsulako/AFFBWheel/assets/154468129/672f86e3-4ce5-4cc3-895d-8aa587a61df2

Ertugrulbabaci commented 8 months ago

@vsulako

oscarMO7 commented 8 months ago

I added this feature it is really useful but it would be better if I you assign it to a button @vsulako

vsulako commented 7 months ago

It now finds the midpoint, but there is a left turn of -8 degrees. Can I make it stop at the midpoint?

try to lower AFC_FORCE. Applied force turns off when reaching center, but wheel can go further because of inertia. Need to rewrite this procedure.

Also, can a button be assigned to operate this system?

Added this. #define AFC_BUTTON in config.h