mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 13:53:34 +08:00
uORB: SubscriptionCallback cleanup naming
This commit is contained in:
@@ -114,12 +114,12 @@ VtolAttitudeControl::~VtolAttitudeControl()
|
||||
bool
|
||||
VtolAttitudeControl::init()
|
||||
{
|
||||
if (!_actuator_inputs_mc.register_callback()) {
|
||||
if (!_actuator_inputs_mc.registerCallback()) {
|
||||
PX4_ERR("MC actuator controls callback registration failed!");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!_actuator_inputs_fw.register_callback()) {
|
||||
if (!_actuator_inputs_fw.registerCallback()) {
|
||||
PX4_ERR("FW actuator controls callback registration failed!");
|
||||
return false;
|
||||
}
|
||||
@@ -290,8 +290,8 @@ void
|
||||
VtolAttitudeControl::Run()
|
||||
{
|
||||
if (should_exit()) {
|
||||
_actuator_inputs_fw.unregister_callback();
|
||||
_actuator_inputs_mc.unregister_callback();
|
||||
_actuator_inputs_fw.unregisterCallback();
|
||||
_actuator_inputs_mc.unregisterCallback();
|
||||
exit_and_cleanup();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user