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.

    please teach us available sensor data

    CoDrone Lite/Pro
    3
    5
    5546
    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.
    • D
      dracen last edited by

      Under the condition firmware Version48.18 is applied to CoDrone,
      which sensor data are available?

      Although I request sensor data using Library's API such as Request_ImuRawAndAngle(),
      these sensor data are not send back from CoDrone to Controller.

      -Temperature
      -Pressure
      -ImuRawAndAngl
      -IrMessage
      -TrimAll
      -GyroBias

      Only Attitude is available.
      If request Attitude data, CoDrone send back it's actual Attitude data.

      Based on CoDrone-LINK_05_28-1.pdf document,
      could you teach us available sensors?

      I've confused to debug software with reading CoDrone-LINK_05_28-1.pdf document.

      As soon as I can, I want to know above information due to our education schedule.

      Thank you in advance to cooperate with us.

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

        Hello @dracen the easiest way to pull information of the CoDrone aside from using snap, is with the python libraries. The setup for CoDrone with python does not use the Arduino compatible remote. We are still working on making the tutorials for using and installing python, but I can share with you an example of how you would be able to request data.

        
        from CoDrone.codrone import *
        
        #create these to store variables globally
        rollAngle =0
        yawAngle =0
        pitchAngle =0
        
        def eventUpdateAttitude(data):
            global rollAngle, pitchAngle, yawAngle
        
            rollAngle =data.roll
            pitchAngle = data.pitch
            yawAngle = data.yaw
        
        
        #creates drone object
        drone = CoDrone(True, False, False, False, False)
        drone.connect()
        
        #set the event handler
        drone.setEventHandler(DataType.Imu, eventUpdateAttitude)
        
        
        while(drone.isConnected()):
            #request for the angle data
            drone.sendRequest(DataType.Imu)
            sleep(0.05)#make sure to have a delay
            print("Roll:",rollAngle, " Yaw:", yawAngle," Pitch:",pitchAngle)
        
        1 Reply Last reply Reply Quote 0
        • robolink_wes
          robolink_wes last edited by

          Please reach out to us at support@robolink.com, we should be able to schedule some help with you to make a workaround solution before the library update is ready. @arnold_robolink will be checking that e-mail.

          1 Reply Last reply Reply Quote 0
          • D
            dracen last edited by

            I did understand that library will be updated and most of sensor data is going to be available.
            To tell the truth, at beginning of March, we will hold the result presentation of programming using CoDrone.

            I wish I had made it in time.

            Are there things what I can do to get sensor data?
            I have no choice but wait library update?

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

              @dracen Apologies for the confusion. The library update we're working on for mid to late March will be able to read out most of the sensor data you listed. We're cleaning up the library and working on a more clear and thorough documentation so that it will be much clearer which functions are available.

              If you're able to share, what is your education schedule, just so we're aware?

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