mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
Copter: Create an ap_t type
This commit is contained in:
parent
5dabb37834
commit
b828fa4ffc
@ -261,7 +261,7 @@ private:
|
||||
#endif
|
||||
|
||||
// Documentation of GLobals:
|
||||
union {
|
||||
typedef union {
|
||||
struct {
|
||||
uint8_t unused1 : 1; // 0
|
||||
uint8_t simple_mode : 2; // 1,2 // This is the state of simple mode : 0 = disabled ; 1 = SIMPLE ; 2 = SUPERSIMPLE
|
||||
@ -290,7 +290,9 @@ private:
|
||||
uint8_t compass_init_location : 1; // 26 // true when the compass's initial location has been set
|
||||
};
|
||||
uint32_t value;
|
||||
} ap;
|
||||
} ap_t;
|
||||
|
||||
ap_t ap;
|
||||
|
||||
// This is the state of the flight control system
|
||||
// There are multiple states defined such as STABILIZE, ACRO,
|
||||
|
Loading…
Reference in New Issue
Block a user