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

Virtual device #41

Merged
merged 122 commits into from Oct 2, 2017
Commits
Jump to file or symbol
Failed to load files and symbols.
+17 −0
Diff settings

Always

Just for now

Viewing a subset of changes. View all

wip: working on item sizes for controls

  • Loading branch information...
harryhaaren committed Jun 4, 2017
commit 82f88d08072a30ba3a61937686293901d3fad368
View
@@ -118,6 +118,20 @@ struct ctlra_grid_info_t {
uint32_t y;
};
/** Struct that provides physical layout and capabilities about each
* item on the controller. Sizes are provided in millimeters. An item can
* represent a control such as a slider or dial, but also feedback only
* items such as an LED, or screen.
*/
struct ctlra_control_info_t {
char name[CTLRA_STR_MAX]; /* Human readable name of the item */
uint32_t x; /* location of item on X axis */
uint32_t y; /* location of item on Y axis */
uint32_t w; /* size of item on X axis */
uint32_t h; /* size of item on Y axis */
/* TODO: figure out how to expose capabilities of item */
};
/** Struct that provides info about the controller. Passed to the
* application on probe().
*/
@@ -32,6 +32,9 @@
#ifndef OPENAV_CTLRA_NI_KONTROL_Z1_H
#define OPENAV_CTLRA_NI_KONTROL_Z1_H
#define NI_KONTROL_Z1_WIDTH 120
#define NI_KONTROL_Z1_HEIGHT 293
enum NI_KONTROL_Z1_LEDS {
/* Left vol LEDs, first 5 blue, last 2 orange */
NI_KONTROL_Z1_LED_LEVEL_L1,
ProTip! Use n and p to navigate between commits in a pull request.