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

How to reset local angle? #807

Open
mmaxus35 opened this issue Aug 29, 2021 · 4 comments
Open

How to reset local angle? #807

mmaxus35 opened this issue Aug 29, 2021 · 4 comments

Comments

@mmaxus35
Copy link

Dear All,

Please beg my naiveness.

I should be able to reset the local angle. I use an elevator system and the initial position of my elevator changes when I restart my system. Therefore, I send the elevator to the top floor and at the top floor the reference/local angle has to be equal to "zero".

Is there a way to do it? I could not see any function in the documents.

Thank you.

@jabrena
Copy link
Member

jabrena commented Aug 29, 2021

Hi,

Can you upgrade the issue with a picture of your project?

@mmaxus35
Copy link
Author

Issue

The elevator can be started to operate at any point of Middle level. So degree initial angle with respect to top-level changes. Therefore elevator should be sent to the top level. When it reaches there, the local/starting angle of the motor should be 0. In other words, if I sent the elevator to the top level, getPosition should be equal to zero.

Note: Elevator cannot be started/initialized at the top level once the system is powered on.

I think it helps.

@mmaxus35
Copy link
Author

mmaxus35 commented Oct 6, 2021

Any solution? @jabrena

@mrkrizic
Copy link

mrkrizic commented Nov 7, 2022

I think what you want to do is to move the elevator until the top touch sensor detects the elevator and stop the motor. After this you should be able to call resetTachoCount() to set the rotation to 0.

I hope this helps

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

3 participants