mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-13 15:40:35 +08:00
uORB: SubscriptionCallback cleanup naming
This commit is contained in:
@@ -138,7 +138,7 @@ FixedwingAttitudeControl::~FixedwingAttitudeControl()
|
||||
bool
|
||||
FixedwingAttitudeControl::init()
|
||||
{
|
||||
if (!_att_sub.register_callback()) {
|
||||
if (!_att_sub.registerCallback()) {
|
||||
PX4_ERR("vehicle attitude callback registration failed!");
|
||||
return false;
|
||||
}
|
||||
@@ -444,7 +444,7 @@ float FixedwingAttitudeControl::get_airspeed_and_update_scaling()
|
||||
void FixedwingAttitudeControl::Run()
|
||||
{
|
||||
if (should_exit()) {
|
||||
_att_sub.unregister_callback();
|
||||
_att_sub.unregisterCallback();
|
||||
exit_and_cleanup();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user