Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    Flic Duo Position Detection (On the Wall vs Handheld)

    Flic Hub SDK
    2
    2
    8
    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.
    • pico
      pico last edited by

      I would like to be able to determine if a Flic Duo is on the wall or handheld in FlicScript.

      I see there is gesture and orientation (x, y, and z dict) attributes, but I'm not certain exactly what orientation parameters are best to accurately determine if a Flic Duo is currently mounted on the wall.

      Is it possible to add a definitive position attribute (or something similar gesture) to know if a Flic Duo is currently on the wall? Or, would it be possible to share the exact orientation conditions that y'all use internally when someone configures an action through the app to determine if the Flic Duo is on the wall or handheld?

      Emil 1 Reply Last reply Reply Quote 0
      • Emil
        Emil FlicTeam @pico last edited by

        @pico Currently we use this condition to determine "on wall":

        x >= -0.19 && x <= 0.19 && y >= 0.93 && y <= 1.25 && z >= -0.19 && z <= 0.19

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