mirror of https://github.com/ArduPilot/ardupilot
AP_DroneCAN: Fix constructor initialization order
bad ordering was leading to dronecan dna server getting initialised before canard interface is initialised leading
This commit is contained in:
parent
20cd9e523c
commit
4d7b94c3cb
|
@ -235,10 +235,12 @@ private:
|
|||
|
||||
uint32_t *mem_pool;
|
||||
|
||||
AP_DroneCAN_DNA_Server _dna_server;
|
||||
|
||||
uint8_t _driver_index;
|
||||
|
||||
CanardInterface canard_iface;
|
||||
|
||||
AP_DroneCAN_DNA_Server _dna_server;
|
||||
|
||||
char _thread_name[13];
|
||||
bool _initialized;
|
||||
///// SRV output /////
|
||||
|
@ -292,8 +294,6 @@ private:
|
|||
} _relay;
|
||||
#endif
|
||||
|
||||
CanardInterface canard_iface;
|
||||
|
||||
#if AP_DRONECAN_SERIAL_ENABLED
|
||||
AP_DroneCAN_Serial serial;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue