File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -172,9 +172,11 @@ bool DJIMatricePSDKPlatform::ownSetOffboardControl(bool offboard)
172
172
{
173
173
if (!offboard) {
174
174
// Release control authority
175
+ RCLCPP_INFO (this ->get_logger (), " Releasing control authority" );
175
176
return setControlAuthority (false );
176
177
}
177
- return true ;
178
+ RCLCPP_INFO (this ->get_logger (), " Obtain control authority" );
179
+ return setControlAuthority (true );
178
180
}
179
181
180
182
bool DJIMatricePSDKPlatform::ownSetPlatformControlMode (const as2_msgs::msg::ControlMode & msg)
@@ -196,7 +198,6 @@ bool DJIMatricePSDKPlatform::ownSetPlatformControlMode(const as2_msgs::msg::Cont
196
198
{
197
199
// Obtain control authority
198
200
RCLCPP_INFO (this ->get_logger (), " HOVER || SPEED MODE: Obtain control authority" );
199
- success = setControlAuthority (true );
200
201
break ;
201
202
}
202
203
default :
You can’t perform that action at this time.
0 commit comments