• Author
    Posts
  • ArmstrongArmstrong
    Participant
    @armstrong
    Post count: 9

    How should I write the command if I want to set the meter pointer on the background image? set_angle(“gauge_pointer”, “gauge_pointer1”).

  • Fiona LiuFiona Liu
    Keymaster
    @bancroft
    Post count: 371

    Do you mean to set a background image first, and then set a gauge pointer?

  • Fiona LiuFiona Liu
    Keymaster
    @bancroft
    Post count: 371

    Why don’t you use instrumentation parts?

    We have gauge parts that can be used with gauge pointers.

  • ArmstrongArmstrong
    Participant
    @armstrong
    Post count: 9
  • ArmstrongArmstrong
    Participant
    @armstrong
    Post count: 9

    In fact, in our design, there are several pages. Some pages contain progress bars/circles and some pages contain gauge pointers.

  • Fiona LiuFiona Liu
    Keymaster
    @bancroft
    Post count: 371

    You can check out this video about the dashboard. I suggest you use both gages and gage pointers.

    https://www.youtube.com/watch?v=uFlRphWvNzA

  • ArmstrongArmstrong
    Participant
    @armstrong
    Post count: 9

    I used it as you suggested, maybe I did something wrong in the code.

  • Fiona LiuFiona Liu
    Keymaster
    @bancroft
    Post count: 371

    Why does this still have progress_cirvle? the circle

  • ArmstrongArmstrong
    Participant
    @armstrong
    Post count: 9

    I used it in different pages.

  • Fiona LiuFiona Liu
    Keymaster
    @bancroft
    Post count: 371

    You can view the command set here

  • ArmstrongArmstrong
    Participant
    @armstrong
    Post count: 9

    How can I set the value of ad_value_s for the pointer?

  • Fiona LiuFiona Liu
    Keymaster
    @bancroft
    Post count: 371

    Pointers can only set angles and images.

  • ArmstrongArmstrong
    Participant
    @armstrong
    Post count: 9

    The pointer should move relative to the value of ad_value_s. So I need to set the angle relative to the value? I’m confused ……

  • Fiona LiuFiona Liu
    Keymaster
    @bancroft
    Post count: 371

    The 2 need to be quoted.
    We have instructional videos on how to set up the gauges and gauge needles
    https://youtu.be/JFrxzNGTgLc

    You can check it out. The ad_value_s value you get needs to be converted to an angle in radians. Then you can make a background image of the meter, and this background image has an approximate range, which is the conversion range of the radian system.

  • ArmstrongArmstrong
    Participant
    @armstrong
    Post count: 9

    Okay, got it, thank you.

You must be logged in to reply to this topic.