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.

    Fly CoDrone in Square Pattern

    CoDrone Troubleshooting
    3
    7
    6846
    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.
    • V
      vette99 last edited by

      Hi all,

      I have been working through the lessons for the coDrone, but have come across some difficulties trying to have the drone fly in a square pattern as described here in Step #4.
      I have copied the code verbatim, but the gyro seems to either be malfunctioning or the sample code needs adjustment.

      Please see this video to get an idea of what is happening. Thoughts? I have tried to add some additional wait events thinking the drone needed more time to get a reading from the gyro before the next event, but no luck.

      Thanks in advance for the help.

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

        Thanks @robolink_arnold. I will give it try and let you know the outcome.

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

          @vette99 Make sure to add a 5 second delay after takeoff this makes the CoDrone stabilize. Then make sure to add a little delay after it performs each sendcontrol command like 0.05 seconds. Just to give you some insight on the BLE communication, each request for sensors or setting flight commands need a small delay in order to function properly, otherwise, the Bluetooth gets jammed pack with messages. Also, I recommend testing each loop individually to find the source of error and then stitching them together.

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

            Here is the xml from my project if you would like to try. Thanks!

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

              Hi @robolink_wes, I was able to try your suggestion plus a few other. Below are the affects when changing the speed of the yaw

              • -20/20 - drone didn't yaw, only hovered

              • -35/35, -45/45, & -75/57 same affect as using -50/50, just back and forth

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

                Hi @robolink_wes, I will be able to test your suggestion tomorrow and will let you know. Thanks

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

                  Hmmmm, that's not good! It looks like the yaw power is a bit too strong, so it keeps trying to adjust for the amounts. I know the lesson shows -50 and 50, but can you try changing all those yaw values to -20 and 20 instead?

                  If you find that's better, we may need to change those code values in the lesson!

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