diff options
| author | Keith Packard <keithp@keithp.com> | 2013-10-25 04:05:09 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-10-25 04:05:09 -0700 | 
| commit | 08143a922fe27bc50a19924f46538f9476ab5fd1 (patch) | |
| tree | cdd2be15a286183eade9d6b665d5bc5a99d5abff /src/core/ao_pyro.c | |
| parent | ba99630f33440b993c69830856d2a7741ffdef71 (diff) | |
altos: Add gyro-based orientation tracking
This tracks the angle-from-vertical as an additional input to the pyro
channels.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_pyro.c')
| -rw-r--r-- | src/core/ao_pyro.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ao_pyro.c b/src/core/ao_pyro.c index 531e1f50..24c9fe99 100644 --- a/src/core/ao_pyro.c +++ b/src/core/ao_pyro.c @@ -113,7 +113,7 @@ ao_pyro_ready(struct ao_pyro *pyro)  				continue;  			break; -#if HAS_ORIENT +#if HAS_GYRO  		case ao_pyro_orient_less:  			if (ao_orient <= pyro->orient_less)  				continue; @@ -310,7 +310,7 @@ const struct {  	{ "h<",	ao_pyro_height_less,	offsetof(struct ao_pyro, height_less), HELP("height less (m)") },  	{ "h>",	ao_pyro_height_greater,	offsetof(struct ao_pyro, height_greater), HELP("height greater (m)") }, -#if HAS_ORIENT +#if HAS_GYRO  	{ "o<",	ao_pyro_orient_less,	offsetof(struct ao_pyro, orient_less), HELP("orient less (deg)") },  	{ "o>",	ao_pyro_orient_greater,	offsetof(struct ao_pyro, orient_greater), HELP("orient greater (deg)")  },  #endif  | 
