mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-03 22:50:34 +08:00
uORB: SubscriptionCallback cleanup naming
This commit is contained in:
@@ -120,7 +120,7 @@ FixedwingPositionControl::~FixedwingPositionControl()
|
||||
bool
|
||||
FixedwingPositionControl::init()
|
||||
{
|
||||
if (!_global_pos_sub.register_callback()) {
|
||||
if (!_global_pos_sub.registerCallback()) {
|
||||
PX4_ERR("vehicle global position callback registration failed!");
|
||||
return false;
|
||||
}
|
||||
@@ -1651,7 +1651,7 @@ void
|
||||
FixedwingPositionControl::Run()
|
||||
{
|
||||
if (should_exit()) {
|
||||
_global_pos_sub.unregister_callback();
|
||||
_global_pos_sub.unregisterCallback();
|
||||
exit_and_cleanup();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user