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.

    Getting sensor data with Snap (for now)

    Announcements
    1
    1
    2476
    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.
    • robolink_wes
      robolink_wes last edited by

      Hi folks! One of the most common questions we get is how users can get sensor data. The best way to do that right now is with Snap using loops. I've provided an example here of how to read gyro and altitude data using loops. Ignore the blocks on the left, those are simply remote control blocks. The blocks outlined in green on the right are active, and they are constantly checking for updates on the data that I've got hooked up to variables in the top right.

      0_1520900834885_reading_sensordata.png

      Give it a try, and then move your drone around to see the value change. The altitude should be effective up to about 2000 mm.

      There's also a lesson right here about reading gyro data.

      Once the library update is released later this week, we'll be releasing lessons about how to read sensor data both in Arduino and Python in the coming weeks.

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