mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
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
129ca14ee3
commit
4c01cbbbcd
@ -231,10 +231,12 @@ private:
|
|||||||
|
|
||||||
uint32_t *mem_pool;
|
uint32_t *mem_pool;
|
||||||
|
|
||||||
AP_DroneCAN_DNA_Server _dna_server;
|
|
||||||
|
|
||||||
uint8_t _driver_index;
|
uint8_t _driver_index;
|
||||||
|
|
||||||
|
CanardInterface canard_iface;
|
||||||
|
|
||||||
|
AP_DroneCAN_DNA_Server _dna_server;
|
||||||
|
|
||||||
char _thread_name[13];
|
char _thread_name[13];
|
||||||
bool _initialized;
|
bool _initialized;
|
||||||
///// SRV output /////
|
///// SRV output /////
|
||||||
@ -288,8 +290,6 @@ private:
|
|||||||
} _relay;
|
} _relay;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
CanardInterface canard_iface;
|
|
||||||
|
|
||||||
#if AP_DRONECAN_SERIAL_ENABLED
|
#if AP_DRONECAN_SERIAL_ENABLED
|
||||||
AP_DroneCAN_Serial serial;
|
AP_DroneCAN_Serial serial;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user