Copter: create a takeoff_state_t type

This commit is contained in:
Peter Barker 2016-08-24 14:23:17 +10:00 committed by Randy Mackay
parent b828fa4ffc
commit e0233f1dc4

View File

@ -309,12 +309,13 @@ private:
uint32_t last_edge_time_ms; // system time that switch position was last changed uint32_t last_edge_time_ms; // system time that switch position was last changed
} control_switch_state; } control_switch_state;
struct { typedef struct {
bool running; bool running;
float max_speed; float max_speed;
float alt_delta; float alt_delta;
uint32_t start_ms; uint32_t start_ms;
} takeoff_state; } takeoff_state_t;
takeoff_state_t takeoff_state;
// altitude below which we do no navigation in auto takeoff // altitude below which we do no navigation in auto takeoff
float auto_takeoff_no_nav_alt_cm; float auto_takeoff_no_nav_alt_cm;