mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 17:38:32 -04:00
AP_Beacon: removed create() method for objects
See discussion here: https://github.com/ArduPilot/ardupilot/issues/7331 we were getting some uninitialised variables. While it only showed up in AP_SbusOut, it means we can't be sure it won't happen on other objects, so safest to remove the approach Thanks to assistance from Lucas, Peter and Francisco
This commit is contained in:
parent
a4c56fcb82
commit
ca91edbbeb
@ -16,7 +16,7 @@ void set_object_value_and_report(const void *object_pointer,
|
|||||||
const char *name, float value);
|
const char *name, float value);
|
||||||
|
|
||||||
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
||||||
static AP_SerialManager serial_manager = AP_SerialManager::create();
|
static AP_SerialManager serial_manager;
|
||||||
AP_Beacon beacon{serial_manager};
|
AP_Beacon beacon{serial_manager};
|
||||||
|
|
||||||
// try to set the object value but provide diagnostic if it failed
|
// try to set the object value but provide diagnostic if it failed
|
||||||
|
Loading…
Reference in New Issue
Block a user