PIR + action selector query

Discussion in 'General Discussion' started by phcjpp, Apr 19, 2006.

  1. phcjpp

    phcjpp

    Joined:
    Oct 19, 2004
    Messages:
    112
    Likes Received:
    0
    Location:
    London
    Hi All,

    Newman posted this comment in a previous thread.

    >>Trigger Groups and Action Selectors are analogous to a C-Bus Group Address >>and Level. So, an Action selector of 2 corresponds to a Level of 1% (there >>are 255 action selectors but only 100 whole percentages).

    >>To make the Multisensor set the Trigger Group to 1% (Action Selector 2) is >>change the key functions in the Multisensor from OnKey to Recall 1. Then set >>the Recall 1 level to 1%


    Can this really be correct ?

    Setting the recal level to 1% would actually trigger action selectors 1,2 or 3,4,5 depending on how you translate.

    The mapping from % to x/255 is not unique.

    If this is true, then you could only use action selectors

    1,3,6,8,11,13,16,18 and so on to guarentee uniqueness.

    Or am I way off the mark ?

    What would make sense is only allowing a pir to trigger action selectors 0-100 or something like that but in that case pir 1% should map to action selector 1 ?????

    Thanks
    Chris
     
    phcjpp, Apr 19, 2006
    #1
  2. phcjpp

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,391
    Likes Received:
    24
    Location:
    Adelaide, South Australia
    It is correct. The translation between 0-255 and % leaves gaps.
     
    ashleigh, Apr 19, 2006
    #2
  3. phcjpp

    phcjpp

    Joined:
    Oct 19, 2004
    Messages:
    112
    Likes Received:
    0
    Location:
    London
    Can you confirm the exact translation ?

    int (%val / 100 * 255) ?

    int (%val / 100 * 254) ?

    ceil (%val / 100 * 255) ?

    ceil (%val / 100 * 254) ?

    Thanks
    Chris
     
    phcjpp, Apr 19, 2006
    #3
  4. phcjpp

    Nobes

    Joined:
    Oct 7, 2004
    Messages:
    164
    Likes Received:
    1
    Location:
    Hobart
    There is a full list in the help file contained in PICED or S+.

    Just go to the help tab, select search for help on...

    Then type in 'percent'

    Cheers
     
    Nobes, Apr 19, 2006
    #4
  5. phcjpp

    phcjpp

    Joined:
    Oct 19, 2004
    Messages:
    112
    Likes Received:
    0
    Location:
    London
    Thanks got it !

    Chris
     
    phcjpp, Apr 20, 2006
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.