Navigation

    Robolink logo
    • Register
    • Login
    • Search
    • [[global:header.categories]]
    • [[global:header.recent]]
    • [[global:header.tags]]
    • [[global:header.popular]]
    • [[global:header.users]]
    • [[global:header.groups]]
    As of September 2021, we have moved technical support to Robolink Help

    Welcome to the Robolink Community forum!

    You can post here to interact with others in the Robolink community. We're checking it weekly, and we'll respond to some messages. If you're looking for technical support, head over to Robolink Help.

    hovering stability

    CoDrone Mini
    4
    8
    1403
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jk3tjn
      jk3tjn last edited by

      I can not stabilize my CoDrone Mini hovering.
      I have tried to press and hold the RESET button, confirmed the LED on the drone flashed.
      On the python program I have changed the variables ' drone.set_trim() ' many times.
      Do you have any ideas?

      1 Reply Last reply Reply Quote 0
      • Sjackson3289
        Sjackson3289 last edited by

        This post is extremely helpful for me. I really appreciate your kindness in sharing this with me and everyone else!

        1 Reply Last reply Reply Quote 0
        • robolink_leila
          robolink_leila @vangj last edited by

          @vangj For now, please include set_trim() in every program to make sure the trim values are set. Have you tried larger values yet? Every now and then we encounter a drone that needs pretty high trim values (above 50). If more than one drone is experiencing these problems, let us know so we can schedule a call with you.

          1 Reply Last reply Reply Quote 0
          • V
            vangj last edited by

            Did anyone get a solution to this problem? Here's my code in its entirety. I cannot get this drone to just hover in place. I don't mind the slight drifts, but the drift is huge making the coding exercise untrustworthy (though the code is correct, the students think the code is written incorrectly).

            Notice how I issue reset_trim() before a set_trim(). I tried this out of desperation to see if that would help stabilize the drone.

            import CoDrone_mini
            import time
            
            drone = CoDrone_mini.CoDrone()
            drone.pair()
            
            drone.reset_trim()
            drone.set_trim(-10, -10)
            time.sleep(2)
            
            drone.takeoff()
            drone.hover(1)
            drone.land()
            
            drone.close()
            
            robolink_leila 1 Reply Last reply Reply Quote 0
            • V
              vangj last edited by

              @jk3tjn I am having the same issue too. I have to always set_trim() to get the drone to hover in place.

              1 Reply Last reply Reply Quote 0
              • robolink_leila
                robolink_leila @jk3tjn last edited by

                @jk3tjn The trim settings will remain even after you power off the drone but sometimes it needs an adjustment every so often.

                1 Reply Last reply Reply Quote 0
                • jk3tjn
                  jk3tjn last edited by

                  Thank you, Leila
                  Yesterday set_trim(-8, 4), I got stability. Today drift backward,
                  set_trim(-8, 25), I got stability.
                  Evert time I fly my drone, I have to set trim. Troublesome!

                  robolink_leila 1 Reply Last reply Reply Quote 0
                  • robolink_leila
                    robolink_leila last edited by

                    @jk3tjn If the values are too low, you may not be noticing a significant change. I normally use 10-20, which solves the drifting issues. Could you describe the behavior you are experiencing (drifting forward, backward, left, right) and which values you are using inside of drone.set_trim()?

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post