Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CyberHD1811 opened this issue Oct 20, 2021 · 0 comments
Open

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

CyberHD1811 opened this issue Oct 20, 2021 · 0 comments

Comments

@CyberHD1811
Copy link
Contributor

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant