diff options
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/ao_companion.h | 4 | ||||
| -rw-r--r-- | src/core/ao_flight.c | 4 | ||||
| -rw-r--r-- | src/core/ao_flight.h | 2 | 
3 files changed, 4 insertions, 6 deletions
| diff --git a/src/core/ao_companion.h b/src/core/ao_companion.h index 47e0acf5..035325a3 100644 --- a/src/core/ao_companion.h +++ b/src/core/ao_companion.h @@ -30,6 +30,10 @@ struct ao_companion_command {  	uint16_t	tick;  	uint16_t	serial;  	uint16_t	flight; +	int16_t		accel; +	int16_t		speed; +	int16_t		height; +	int16_t		motor_number;  };  struct ao_companion_setup { diff --git a/src/core/ao_flight.c b/src/core/ao_flight.c index fc018f00..aa4f6961 100644 --- a/src/core/ao_flight.c +++ b/src/core/ao_flight.c @@ -40,9 +40,7 @@  __pdata enum ao_flight_state	ao_flight_state;	/* current flight state */  __pdata uint16_t		ao_boost_tick;		/* time of launch detect */ -#if AO_PYRO_NUM  __pdata uint16_t		ao_motor_number;	/* number of motors burned so far */ -#endif  /*   * track min/max data over a long interval to detect @@ -218,9 +216,7 @@ ao_flight(void)  #else  				ao_flight_state = ao_flight_coast;  #endif -#if AO_PYRO_NUM  				++ao_motor_number; -#endif  				ao_wakeup(DATA_TO_XDATA(&ao_flight_state));  			}  			break; diff --git a/src/core/ao_flight.h b/src/core/ao_flight.h index c5c8af46..b80202f0 100644 --- a/src/core/ao_flight.h +++ b/src/core/ao_flight.h @@ -38,9 +38,7 @@ enum ao_flight_state {  extern __pdata enum ao_flight_state	ao_flight_state;  extern __pdata uint16_t			ao_boost_tick; -#if AO_PYRO_NUM  extern __pdata uint16_t			ao_motor_number; -#endif  extern __pdata uint16_t			ao_launch_time;  extern __pdata uint8_t			ao_flight_force_idle; | 
