Skip to content

Question: Naming Information of moving head Pan/Tilt #124

Description

@CyberHD1811

Hey there,

you might have noticed i'm currently publishing some dmx lights to your package. First a small LED-Pot, then a LED-Bar and currently i'm working on a Moving Head. But the problem is, that the channel 1 and 2 have a middle value of 128. But how do i let the people know this? (The same applies for channels which have sometimes something like: 1...255: Intensity of the red color (0%-100%), if channel 6 [in this example the dimmer] has a value between 1...255 and channel 8 [in this case a overwriting macro-channel] has a value of 0.

I'm personally thinking of something like this:

module.exports = {
  'someDMXDevice': {
    channels: ['dimmer', 'red', 'green', 'blue', 'macros', 'pan', 'tilt'],
    ranges: {
      'red': {
        'type': 'condition',
        'conditions': [
          { 'value': 1, 'statement': 'Intensity Red, if channel "dimmer" is between 1...255 and channel "macros" is 0' },
        ],
      },
      //Same applies for the channel green and blue but not including them in this example
      'pan': {
        'type': 'rotation',
        'values': [
          { 'min': 0, 'degrees': -270 },
          { 'middle': 128, 'degrees': 0 },
          { 'max': 255, 'degrees': 270 },
        ],
      },
      'tilt': {
        'type': 'rotation',
        'values': [
          { 'min': 0, 'degrees': -85 },
          { 'middle': 128, 'degrees': 0 },
          { 'max': 255, 'degrees': 85 },
        ],
      },
    },
  },
};

(Also i'm not too shure when to put the key into quotes. If you have a system for this i would be pleased, if you tell me this.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions