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

Motor app does not working on devices without endstops (Dafang) #13

Open
danergo opened this issue Oct 21, 2019 · 1 comment
Open

Motor app does not working on devices without endstops (Dafang) #13

danergo opened this issue Oct 21, 2019 · 1 comment

Comments

@danergo
Copy link

danergo commented Oct 21, 2019

In /etc/init.d/rcS there is a line:

Calibrate the motors for newer models without endstops:
motor calibrate

This goes into the /usr/scripts/common_functions.sh:
/usr/bin/motor -d f -s "$steps"

However in motor_app/motor.c there is only 'l', 'r', 'u', 'd', 'v', 'h', 's' and 'c' options defined for -d.

So if I run the command it gives me an error:

/usr/bin/motor -d f -s 0
Invalid Driection Argument f
x: 0
y: 0
speed: 900

So there is no 'f'.

How can I calibrate the motors?

(There is a cruise method in motor.c, but it does not do anything for me)

There is absolutely nothing in either motor_app directory nor in the drivers/misc/sample_motor directory.

@danergo
Copy link
Author

danergo commented Oct 21, 2019

Okay, I have found the solution here: https://github.com/EliasKotlyar/Xiaomi-Dafang-Software

But this repo is clearly marked deprecated...

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

No branches or pull requests

1 participant