2 * Copyright © 2012 Keith Packard <keithp@keithp.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
26 enum ao_flight_state {
27 ao_flight_startup = 0,
36 ao_flight_invalid = 9,
40 extern __pdata enum ao_flight_state ao_flight_state;
41 extern __pdata uint16_t ao_boost_tick;
42 extern __pdata uint16_t ao_motor_number;
44 #if HAS_IMU || HAS_MMA655X
45 #define HAS_SENSOR_ERRORS 1
49 extern __xdata uint8_t ao_sensor_errors;
52 extern __pdata uint16_t ao_launch_time;
53 extern __pdata uint8_t ao_flight_force_idle;
59 /* Initialize flight thread */
68 ao_flight_nano_init(void);
70 #endif /* _AO_FLIGHT_H_ */