AP_GPS: move initialisation of some members into header
This commit is contained in:
parent
6e760a2b94
commit
1d91962b96
@ -100,12 +100,6 @@ AP_GPS_UBLOX::AP_GPS_UBLOX(AP_GPS &_gps,
|
||||
AP_HAL::UARTDriver *_port,
|
||||
AP_GPS::GPS_Role _role) :
|
||||
AP_GPS_Backend(_gps, _params, _state, _port),
|
||||
_next_message(STEP_PVT),
|
||||
_ublox_port(255),
|
||||
_unconfigured_messages(CONFIG_ALL),
|
||||
_hardware_generation(UBLOX_UNKNOWN_HARDWARE_GENERATION),
|
||||
next_fix(AP_GPS::NO_FIX),
|
||||
noReceivedHdop(true),
|
||||
role(_role)
|
||||
{
|
||||
// stop any config strings that are pending
|
||||
|
@ -778,13 +778,13 @@ private:
|
||||
uint32_t _last_config_time;
|
||||
uint32_t _f9_config_time;
|
||||
uint16_t _delay_time;
|
||||
uint8_t _next_message;
|
||||
uint8_t _ublox_port;
|
||||
uint8_t _next_message { STEP_PVT };
|
||||
uint8_t _ublox_port { 255 };
|
||||
bool _have_version;
|
||||
struct ubx_mon_ver _version;
|
||||
char _module[UBLOX_MODULE_LEN];
|
||||
uint32_t _unconfigured_messages;
|
||||
uint8_t _hardware_generation;
|
||||
uint32_t _unconfigured_messages {CONFIG_ALL};
|
||||
uint8_t _hardware_generation { UBLOX_UNKNOWN_HARDWARE_GENERATION };
|
||||
uint8_t _hardware_variant;
|
||||
uint32_t _last_pvt_itow;
|
||||
uint32_t _last_relposned_itow;
|
||||
@ -804,11 +804,11 @@ private:
|
||||
bool _parse_gps();
|
||||
|
||||
// used to update fix between status and position packets
|
||||
AP_GPS::GPS_Status next_fix;
|
||||
AP_GPS::GPS_Status next_fix { AP_GPS::NO_FIX };
|
||||
|
||||
bool _cfg_needs_save;
|
||||
|
||||
bool noReceivedHdop;
|
||||
bool noReceivedHdop { true };
|
||||
|
||||
bool havePvtMsg;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user