Skip to content

How to reset local angle? #807

Open
Open

Description

@mmaxus35

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.

Activity

  1. jabrena commented on Aug 29, 2021

    @jabrena
    Member

    Hi,

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

  2. mmaxus35 commented on Aug 29, 2021

    @mmaxus35
    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.

  3. mmaxus35 commented on Oct 6, 2021

    @mmaxus35
    Author

    Any solution? @jabrena

  4. mrkrizic commented on Nov 7, 2022

    @mrkrizic

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions