altos: Allow pyro flight state config to be set
authorKeith Packard <keithp@keithp.com>
Tue, 23 Oct 2012 04:38:18 +0000 (21:38 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 23 Oct 2012 04:38:18 +0000 (21:38 -0700)
Without these lines, flight state compares can't be shown or set.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_pyro.c

index b1cfd9d871fe1045f1cf6bc2d970471f913b7ca9..aac8fda51c7219d6895fce2655ec922b01bf4b9f 100644 (file)
@@ -271,6 +271,9 @@ const struct {
        { "t<", ao_pyro_time_less,      offsetof(struct ao_pyro, time_less), HELP("time less (s * 100)") },
        { "t>", ao_pyro_time_greater,   offsetof(struct ao_pyro, time_greater), HELP("time greater (s * 100)")  },
 
+       { "f<", ao_pyro_state_less,     offsetof(struct ao_pyro, state_less), HELP("state less") },
+       { "f>=",ao_pyro_state_greater_or_equal, offsetof(struct ao_pyro, state_greater_or_equal), HELP("state greater or equal")  },
+
        { "A", ao_pyro_ascending,       NO_VALUE, HELP("ascending") },
        { "D", ao_pyro_descending,      NO_VALUE, HELP("descending") },