From f80065c24765ee1fcfc075c77f7ea55984a1d715 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 30 Jun 2019 18:40:21 +0200 Subject: Add pan/tilt reverse --- src/nanolight.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/nanolight.c') diff --git a/src/nanolight.c b/src/nanolight.c index 16e3ac3..42bd068 100644 --- a/src/nanolight.c +++ b/src/nanolight.c @@ -45,7 +45,8 @@ static void show_help(const char *s) static struct fixture *create_fixture(struct nanolight *nl, struct fixture_class *cls, - const char *label, int universe, int base_addr) + const char *label, int universe, int base_addr, + int flags) { struct fixture *fix; @@ -62,6 +63,7 @@ static struct fixture *create_fixture(struct nanolight *nl, struct fixture_class fix->universe = universe; fix->base_addr = base_addr; fix->cls = cls; + fix->flags = flags; fix->intensity = 0.0; fix->cyan = 0.0; @@ -322,10 +324,10 @@ int main(int argc, char *argv[]) nl.go_lock = 0; nl.sb_lock = 0; - create_fixture(&nl, &cls, "mh1", 0, 1); - create_fixture(&nl, &cls, "mh2", 0, 52); - create_fixture(&nl, &cls, "mh3", 0, 103); - create_fixture(&nl, &cls, "mh4", 0, 154); + create_fixture(&nl, &cls, "mh1", 0, 1, REVERSE_PAN); + create_fixture(&nl, &cls, "mh2", 0, 52, REVERSE_PAN); + create_fixture(&nl, &cls, "mh3", 0, 103, REVERSE_PAN); + create_fixture(&nl, &cls, "mh4", 0, 154, REVERSE_PAN); /* Set up output */ g_timeout_add(100, scanout_cb, &nl); -- cgit v1.2.3